Commit 9ef84609 authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Removed old debug prints.

parent 6e4e1530
...@@ -52,7 +52,6 @@ WbBckWQt::WbBckWQt(void* bckw_parent_ctx, QWidget* bckw_parent_wid, ...@@ -52,7 +52,6 @@ WbBckWQt::WbBckWQt(void* bckw_parent_ctx, QWidget* bckw_parent_wid,
bckw_parent_ctx, bckw_ldhses, bckw_name, l_list, l_editmode, status) bckw_parent_ctx, bckw_ldhses, bckw_name, l_list, l_editmode, status)
{ {
toplevel = new WbBckWQtWidget(this, bckw_parent_wid); toplevel = new WbBckWQtWidget(this, bckw_parent_wid);
toplevel->setToolTip(fl("wb_bckw widget"));
toplevel->setMinimumSize(1100, 600); toplevel->setMinimumSize(1100, 600);
toplevel->setWindowTitle(fl(bckw_name)); toplevel->setWindowTitle(fl(bckw_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose); toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
...@@ -52,7 +52,6 @@ WbExpWQt::WbExpWQt(void* expw_parent_ctx, QWidget* expw_parent_wid, ...@@ -52,7 +52,6 @@ WbExpWQt::WbExpWQt(void* expw_parent_ctx, QWidget* expw_parent_wid,
expw_parent_ctx, expw_ldhses, expw_name, l_type, l_editmode, status) expw_parent_ctx, expw_ldhses, expw_name, l_type, l_editmode, status)
{ {
toplevel = new WbExpWQtWidget(this, expw_parent_wid); toplevel = new WbExpWQtWidget(this, expw_parent_wid);
toplevel->setToolTip(fl("wb_expw widget"));
toplevel->setMinimumSize(1100, 600); toplevel->setMinimumSize(1100, 600);
toplevel->setWindowTitle(fl(expw_name)); toplevel->setWindowTitle(fl(expw_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose); toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
...@@ -132,7 +132,6 @@ WCrrQt::WCrrQt(QWidget* xa_parent_wid, void* xa_parent_ctx, ...@@ -132,7 +132,6 @@ WCrrQt::WCrrQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
strncpy(title, namep, sizeof(title)); strncpy(title, namep, sizeof(title));
toplevel = new WCrrQtWidget(this, xa_parent_wid); toplevel = new WCrrQtWidget(this, xa_parent_wid);
toplevel->setToolTip(fl("wb_xcrr widget"));
toplevel->setMinimumSize(600, 420); toplevel->setMinimumSize(600, 420);
toplevel->setWindowTitle(convert_utf8(title)); toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose); toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
...@@ -87,6 +87,11 @@ CoLogWQt::CoLogWQt(void* logw_parent_ctx, QWidget* logw_parent_wid, ...@@ -87,6 +87,11 @@ CoLogWQt::CoLogWQt(void* logw_parent_ctx, QWidget* logw_parent_wid,
wow = new CoWowQt(toplevel); wow = new CoWowQt(toplevel);
} }
CoLogWQt::~CoLogWQt()
{
delete logwnav;
}
void CoLogWQt::print() void CoLogWQt::print()
{ {
CoWowQt::CreateBrowPrintDialogQt(name, logwnav->brow->ctx, ((CoLogWNavQt*)logwnav)->brow_widget); CoWowQt::CreateBrowPrintDialogQt(name, logwnav->brow->ctx, ((CoLogWNavQt*)logwnav)->brow_widget);
...@@ -104,7 +109,6 @@ void CoLogWQtWidget::focusInEvent(QFocusEvent* event) ...@@ -104,7 +109,6 @@ void CoLogWQtWidget::focusInEvent(QFocusEvent* event)
void CoLogWQtWidget::closeEvent(QCloseEvent* event) void CoLogWQtWidget::closeEvent(QCloseEvent* event)
{ {
debug_print("CoLogWQtWidget::closeEvent\n");
delete logw; delete logw;
QWidget::closeEvent(event); QWidget::closeEvent(event);
} }
......
...@@ -49,6 +49,7 @@ class CoLogWQt : public CoLogW { ...@@ -49,6 +49,7 @@ class CoLogWQt : public CoLogW {
public: public:
CoLogWQt(void* msg_parent_ctx, QWidget* msg_parent_wid, const char* msg_name, CoLogWQt(void* msg_parent_ctx, QWidget* msg_parent_wid, const char* msg_name,
int l_show_item, pwr_tStatus* status); int l_show_item, pwr_tStatus* status);
~CoLogWQt();
QWidget* nav_widget; QWidget* nav_widget;
CoWowFocusTimerQt focustimer; CoWowFocusTimerQt focustimer;
......
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
void RtMonQtWidget::closeEvent(QCloseEvent* event) void RtMonQtWidget::closeEvent(QCloseEvent* event)
{ {
debug_print("RtMonQtWidget::closeEvent\n");
if (rtmon->close_cb) { if (rtmon->close_cb) {
(rtmon->close_cb)(rtmon->parent_ctx); (rtmon->close_cb)(rtmon->parent_ctx);
} else { } else {
...@@ -246,7 +245,6 @@ void RtMonQtWidget::rtmon_scan() ...@@ -246,7 +245,6 @@ void RtMonQtWidget::rtmon_scan()
RtMonQt::~RtMonQt() RtMonQt::~RtMonQt()
{ {
debug_print("RtMonQt::~RtMonQt\n");
if (timerid) { if (timerid) {
delete timerid; delete timerid;
} }
......
...@@ -51,7 +51,6 @@ ...@@ -51,7 +51,6 @@
void NodelistQtWidget::closeEvent(QCloseEvent* event) void NodelistQtWidget::closeEvent(QCloseEvent* event)
{ {
debug_print("NodelistQtWidget::closeEvent\n");
if (nodelist->close_cb) { if (nodelist->close_cb) {
(nodelist->close_cb)(nodelist->parent_ctx); (nodelist->close_cb)(nodelist->parent_ctx);
} else { } else {
......
...@@ -54,7 +54,6 @@ NodelistNavQt::NodelistNavQt(void* nodelist_parent_ctx, ...@@ -54,7 +54,6 @@ NodelistNavQt::NodelistNavQt(void* nodelist_parent_ctx,
{ {
trace_obj = new NodelistNavQtTraceObject(this); trace_obj = new NodelistNavQtTraceObject(this);
debug_print("creating a scrolledbrowwidgetqt\n");
form_widget = scrolledbrowwidgetqt_new(init_brow_cb, this, &brow_widget); form_widget = scrolledbrowwidgetqt_new(init_brow_cb, this, &brow_widget);
*w = form_widget; *w = form_widget;
...@@ -64,7 +63,6 @@ NodelistNavQt::NodelistNavQt(void* nodelist_parent_ctx, ...@@ -64,7 +63,6 @@ NodelistNavQt::NodelistNavQt(void* nodelist_parent_ctx,
NodelistNavQt::~NodelistNavQt() NodelistNavQt::~NodelistNavQt()
{ {
debug_print("NodelistNavQt::~NodelistNavQt\n");
delete trace_obj; delete trace_obj;
delete brow; delete brow;
......
...@@ -963,7 +963,6 @@ CoWowQt::CoWowQt(QWidget* parent) ...@@ -963,7 +963,6 @@ CoWowQt::CoWowQt(QWidget* parent)
CoWowQt::~CoWowQt() CoWowQt::~CoWowQt()
{ {
debug_print("CoWowQt::~CoWowQt\n");
delete object; delete object;
} }
...@@ -1033,7 +1032,6 @@ static int GetPrintHeaderMargin(QPainter* painter) ...@@ -1033,7 +1032,6 @@ static int GetPrintHeaderMargin(QPainter* painter)
} }
static void PrintPage(QPainter* painter, const char* title, flow_tCtx ctx, QImage* image, double ll_x, double ll_y, double ur_x, double ur_y, int page) { static void PrintPage(QPainter* painter, const char* title, flow_tCtx ctx, QImage* image, double ll_x, double ll_y, double ur_x, double ur_y, int page) {
debug_print("ll_x=%f, ll_y=%f, ur_x=%f, ur_y=%f\n", ll_x, ll_y, ur_x, ur_y);
double zoom = qMin( double zoom = qMin(
ctx->window_width / (ur_x - ll_x + 2 / ctx->zoom_factor), ctx->window_width / (ur_x - ll_x + 2 / ctx->zoom_factor),
ctx->window_height / (ur_y - ll_y + 2 / ctx->zoom_factor) ctx->window_height / (ur_y - ll_y + 2 / ctx->zoom_factor)
......
...@@ -173,7 +173,6 @@ void CoXHelpQt::pop() ...@@ -173,7 +173,6 @@ void CoXHelpQt::pop()
CoXHelpQt::~CoXHelpQt() CoXHelpQt::~CoXHelpQt()
{ {
debug_print("~CoXHelpQt()\n");
delete xhelpnav; delete xhelpnav;
} }
......
...@@ -60,7 +60,6 @@ CoXHelpNavQt::CoXHelpNavQt(void* xn_parent_ctx, QWidget* xn_parent_wid, ...@@ -60,7 +60,6 @@ CoXHelpNavQt::CoXHelpNavQt(void* xn_parent_ctx, QWidget* xn_parent_wid,
CoXHelpNavQt::~CoXHelpNavQt() CoXHelpNavQt::~CoXHelpNavQt()
{ {
debug_print("CoXHelpNavQt::~CoXHelpNavQt\n");
closing_down = 1; closing_down = 1;
for (int i = 0; i < brow_cnt; i++) { for (int i = 0; i < brow_cnt; i++) {
......
...@@ -161,7 +161,6 @@ static QColor flow_allocate_color(FlowDrawQt* draw_ctx, const char* named_color) ...@@ -161,7 +161,6 @@ static QColor flow_allocate_color(FlowDrawQt* draw_ctx, const char* named_color)
FlowDrawQt::~FlowDrawQt() FlowDrawQt::~FlowDrawQt()
{ {
debug_print("FlowDrawQt::~FlowDrawQt\n");
closing_down = 1; closing_down = 1;
basectx->set_nodraw(); basectx->set_nodraw();
......
...@@ -1238,7 +1238,6 @@ void GeQt::update() ...@@ -1238,7 +1238,6 @@ void GeQt::update()
void GeQtWidget::closeEvent(QCloseEvent* event) void GeQtWidget::closeEvent(QCloseEvent* event)
{ {
debug_print("GeQtWidget::closeEvent\n");
ge->Ge::activate_exit(); ge->Ge::activate_exit();
QWidget::closeEvent(event); QWidget::closeEvent(event);
} }
...@@ -1263,7 +1262,6 @@ void GeQtWidget::focusInEvent(QFocusEvent* event) ...@@ -1263,7 +1262,6 @@ void GeQtWidget::focusInEvent(QFocusEvent* event)
GeQt::~GeQt() GeQt::~GeQt()
{ {
debug_print("GeQt::~GeQt\n");
if (graph->is_modified()) { if (graph->is_modified()) {
open_yesnodia("Do you wan't to save changes", "Save", Ge::exit_save_cb, open_yesnodia("Do you wan't to save changes", "Save", Ge::exit_save_cb,
Ge::exit_nosave_cb); Ge::exit_nosave_cb);
...@@ -1939,7 +1937,6 @@ GeQt::GeQt(void* x_parent_ctx, QWidget* x_parent_widget, ...@@ -1939,7 +1937,6 @@ GeQt::GeQt(void* x_parent_ctx, QWidget* x_parent_widget,
subpalette_mapped = 1; subpalette_mapped = 1;
// Color palette // Color palette
debug_print("creating a scrolledcolpalwidgetqt\n");
colpal_main_widget = scrolledcolpalwidgetqt_new( colpal_main_widget = scrolledcolpalwidgetqt_new(
Ge::init_colorpalette_cb, this, &colorpalette_widget); Ge::init_colorpalette_cb, this, &colorpalette_widget);
......
...@@ -235,7 +235,6 @@ static QColor glow_allocate_custom_color(GlowDrawQt* draw_ctx, ...@@ -235,7 +235,6 @@ static QColor glow_allocate_custom_color(GlowDrawQt* draw_ctx,
GlowDrawQt::~GlowDrawQt() GlowDrawQt::~GlowDrawQt()
{ {
debug_print("GlowDrawQt::~GlowDrawQt\n");
closing_down = 1; closing_down = 1;
ctx->set_nodraw(); ctx->set_nodraw();
......
...@@ -151,7 +151,6 @@ BlockQt::BlockQt(void* b_parent_ctx, QWidget* b_parent_wid, pwr_sAttrRef* b_oar, ...@@ -151,7 +151,6 @@ BlockQt::BlockQt(void* b_parent_ctx, QWidget* b_parent_wid, pwr_sAttrRef* b_oar,
strcat(title, " "); strcat(title, " ");
strcat(title, aname); strcat(title, aname);
toplevel->setToolTip(fl("xtt_block widget"));
toplevel->setWindowTitle(fl(title)); toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose); toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
...@@ -67,7 +67,6 @@ CLogQt::CLogQt(void* clog_parent_ctx, QWidget* clog_parent_wid, ...@@ -67,7 +67,6 @@ CLogQt::CLogQt(void* clog_parent_ctx, QWidget* clog_parent_wid,
: CLog(clog_parent_ctx, clog_name, status), parent_wid(clog_parent_wid) : CLog(clog_parent_ctx, clog_name, status), parent_wid(clog_parent_wid)
{ {
toplevel = new CLogQtWidget(this, clog_parent_wid); toplevel = new CLogQtWidget(this, clog_parent_wid);
toplevel->setToolTip(fl("xtt_clog widget"));
toplevel->setMinimumSize(1000, 800); toplevel->setMinimumSize(1000, 800);
toplevel->setWindowTitle(translate_utf8(clog_name)); toplevel->setWindowTitle(translate_utf8(clog_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose); toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
...@@ -123,7 +123,6 @@ EvQt::EvQt(void* ev_parent_ctx, QWidget* ev_parent_wid, char* eve_name, ...@@ -123,7 +123,6 @@ EvQt::EvQt(void* ev_parent_ctx, QWidget* ev_parent_wid, char* eve_name,
parent_wid_eve = new CallbackWidget( parent_wid_eve = new CallbackWidget(
object, &EvQtObject::eve_activate_exit, &EvQtObject::eve_action_inputfocus); object, &EvQtObject::eve_activate_exit, &EvQtObject::eve_action_inputfocus);
parent_wid_eve->setMinimumSize(eve_width, eve_height); parent_wid_eve->setMinimumSize(eve_width, eve_height);
parent_wid_eve->setToolTip(fl("xtt_ev eve widget"));
parent_wid_eve->setWindowTitle(translate_utf8(eve_name)); parent_wid_eve->setWindowTitle(translate_utf8(eve_name));
// Do not set the DeleteOnClose attribute. // Do not set the DeleteOnClose attribute.
...@@ -227,7 +226,6 @@ EvQt::EvQt(void* ev_parent_ctx, QWidget* ev_parent_wid, char* eve_name, ...@@ -227,7 +226,6 @@ EvQt::EvQt(void* ev_parent_ctx, QWidget* ev_parent_wid, char* eve_name,
{ {
parent_wid_ala = new CallbackWidget( parent_wid_ala = new CallbackWidget(
object, &EvQtObject::ala_activate_exit, &EvQtObject::ala_action_inputfocus); object, &EvQtObject::ala_activate_exit, &EvQtObject::ala_action_inputfocus);
parent_wid_ala->setToolTip(fl("xtt_ev ala widget"));
parent_wid_ala->setMinimumSize(ala_width, ala_height); parent_wid_ala->setMinimumSize(ala_width, ala_height);
parent_wid_ala->setWindowTitle(translate_utf8(ala_name)); parent_wid_ala->setWindowTitle(translate_utf8(ala_name));
// Do not set the DeleteOnClose attribute. // Do not set the DeleteOnClose attribute.
...@@ -365,7 +363,6 @@ EvQt::EvQt(void* ev_parent_ctx, QWidget* ev_parent_wid, char* eve_name, ...@@ -365,7 +363,6 @@ EvQt::EvQt(void* ev_parent_ctx, QWidget* ev_parent_wid, char* eve_name,
{ {
parent_wid_blk = new CallbackWidget( parent_wid_blk = new CallbackWidget(
object, &EvQtObject::blk_activate_exit, &EvQtObject::blk_action_inputfocus); object, &EvQtObject::blk_activate_exit, &EvQtObject::blk_action_inputfocus);
parent_wid_blk->setToolTip(fl("xtt_ev blk widget"));
parent_wid_blk->setMinimumSize(blk_width, blk_height); parent_wid_blk->setMinimumSize(blk_width, blk_height);
parent_wid_blk->setWindowTitle(translate_utf8(blk_name)); parent_wid_blk->setWindowTitle(translate_utf8(blk_name));
// Do not set the DeleteOnClose attribute. // Do not set the DeleteOnClose attribute.
......
...@@ -87,7 +87,6 @@ EvAlaQt::EvAlaQt(void* ev_parent_ctx, QWidget* ev_parent_wid, char* ala_name, ...@@ -87,7 +87,6 @@ EvAlaQt::EvAlaQt(void* ev_parent_ctx, QWidget* ev_parent_wid, char* ala_name,
if (!(options & ev_mAlaOptions_Embedded)) { if (!(options & ev_mAlaOptions_Embedded)) {
toplevel = new EvAlaQtWidget(this, ev_parent_wid); toplevel = new EvAlaQtWidget(this, ev_parent_wid);
toplevel->setToolTip(fl("xtt_evala widget"));
toplevel->setMinimumSize(ala_width, ala_height); toplevel->setMinimumSize(ala_width, ala_height);
toplevel->setWindowTitle(translate_utf8(ala_name)); toplevel->setWindowTitle(translate_utf8(ala_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose); toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
...@@ -84,7 +84,6 @@ EvEveQt::EvEveQt(void* ev_parent_ctx, QWidget* ev_parent_wid, char* eve_name, ...@@ -84,7 +84,6 @@ EvEveQt::EvEveQt(void* ev_parent_ctx, QWidget* ev_parent_wid, char* eve_name,
// Eve Window // Eve Window
if (!(options & ev_mAlaOptions_Embedded)) { if (!(options & ev_mAlaOptions_Embedded)) {
toplevel = new EvEveQtWidget(this, ev_parent_wid); toplevel = new EvEveQtWidget(this, ev_parent_wid);
toplevel->setToolTip(fl("xtt_eveve widget"));
toplevel->setMinimumSize(eve_width, eve_height); toplevel->setMinimumSize(eve_width, eve_height);
toplevel->setWindowTitle(translate_utf8(eve_name)); toplevel->setWindowTitle(translate_utf8(eve_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose); toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
...@@ -62,6 +62,8 @@ ...@@ -62,6 +62,8 @@
#include "xtt_xnav.h" #include "xtt_xnav.h"
// TODO: Clean up this mess // TODO: Clean up this mess
// TODO: The Box layout is identical to the Table layout
// => Use the Table layout for both Box+Table.
QWidget* XttMultiViewQt::error_msg(const char* msg, pwr_tStatus sts) QWidget* XttMultiViewQt::error_msg(const char* msg, pwr_tStatus sts)
{ {
......
...@@ -151,7 +151,6 @@ OpQt::OpQt(void* op_parent_ctx, QWidget* op_parent_wid, char* opplace, ...@@ -151,7 +151,6 @@ OpQt::OpQt(void* op_parent_ctx, QWidget* op_parent_wid, char* opplace,
gray_color = QColor("gray"); gray_color = QColor("gray");
toplevel = new OpQtWidget(this, op_parent_wid); toplevel = new OpQtWidget(this, op_parent_wid);
toplevel->setToolTip(fl("xtt_op widget"));
toplevel->setMinimumSize(1100, OP_HEIGHT_MIN + OP_HEIGHT_STATUSBAR); toplevel->setMinimumSize(1100, OP_HEIGHT_MIN + OP_HEIGHT_STATUSBAR);
toplevel->setWindowFlags(Qt::CustomizeWindowHint); toplevel->setWindowFlags(Qt::CustomizeWindowHint);
......
...@@ -173,7 +173,6 @@ void RtTraceQtWidget::activate_helpplclist() ...@@ -173,7 +173,6 @@ void RtTraceQtWidget::activate_helpplclist()
RtTraceQt::~RtTraceQt() RtTraceQt::~RtTraceQt()
{ {
debug_print("RtTraceQt::~RtTraceQt\n");
trace_tNode *node, *fnode; trace_tNode *node, *fnode;
trace_stop(); trace_stop();
...@@ -211,7 +210,6 @@ RtTrace* RtTraceQt::subwindow_new(void* ctx, pwr_tObjid oid, pwr_tStatus* sts) ...@@ -211,7 +210,6 @@ RtTrace* RtTraceQt::subwindow_new(void* ctx, pwr_tObjid oid, pwr_tStatus* sts)
void RtTraceQtWidget::closeEvent(QCloseEvent* event) void RtTraceQtWidget::closeEvent(QCloseEvent* event)
{ {
debug_print("RtTraceQtWidget::closeEvent\n");
rt->activate_close(); rt->activate_close();
QWidget::closeEvent(event); QWidget::closeEvent(event);
} }
...@@ -391,10 +389,8 @@ RtTraceQt::RtTraceQt(void* tr_parent_ctx, QWidget* tr_parent_wid, ...@@ -391,10 +389,8 @@ RtTraceQt::RtTraceQt(void* tr_parent_ctx, QWidget* tr_parent_wid,
"$pwr_exe/xtt_zoom_reset.png"); "$pwr_exe/xtt_zoom_reset.png");
// Flow widget // Flow widget
debug_print("creating a scrolledflowwidgetqt\n");
QWidget* flow_scrolled QWidget* flow_scrolled
= scrolledflowwidgetqt_new(init_flow, this, &flow_widget); = scrolledflowwidgetqt_new(init_flow, this, &flow_widget);
debug_print("creating a flownavwidgetqt\n");
nav_widget = flownavwidgetqt_new(flow_widget); nav_widget = flownavwidgetqt_new(flow_widget);
QSplitter* paned = new QSplitter(toplevel); QSplitter* paned = new QSplitter(toplevel);
......
...@@ -433,7 +433,6 @@ XColWindQt::XColWindQt(QWidget* xa_parent_wid, void* xa_parent_ctx, ...@@ -433,7 +433,6 @@ XColWindQt::XColWindQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
xattnav_eType xattnav_type; xattnav_eType xattnav_type;
toplevel = new XColWindQtWidget(this, xa_parent_wid); toplevel = new XColWindQtWidget(this, xa_parent_wid);
toplevel->setToolTip(fl("xtt_xcolwind widget"));
toplevel->setMinimumSize(420, 600); toplevel->setMinimumSize(420, 600);
toplevel->setWindowTitle(convert_utf8(title)); toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose); toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment