Commit 1e1b8952 authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Added xtt_otree destructor.

parent c02e4af7
......@@ -53,7 +53,6 @@ void CowTreeQt::message(char severity, const char* message)
void CowTreeQtWidget::closeEvent(QCloseEvent* event)
{
debug_print("CowTreeQtWidget::closeEvent\n");
if (tree->close_cb) {
(tree->close_cb)(tree->parent_ctx);
} else {
......@@ -131,7 +130,6 @@ CowTreeQt::CowTreeQt(QWidget* a_parent_wid, void* a_parent_ctx,
int sts;
toplevel = new CowTreeQtWidget(this, a_parent_wid);
toplevel->setToolTip(fl("cow_tree widget"));
toplevel->setMinimumSize(600, 400);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -50,7 +50,6 @@ TreeNavQt::TreeNavQt(void* xn_parent_ctx, QWidget* xn_parent_wid,
: TreeNav(xn_parent_ctx, xn_itemlist, xn_item_cnt, xn_options,
xn_get_object_info, xn_get_node_info, status)
{
debug_print("creating a scrolledbrowwidgetqt\n");
form_widget
= scrolledbrowwidgetqt_new(TreeNav::init_brow_cb, this, &brow_widget);
......@@ -62,7 +61,6 @@ TreeNavQt::TreeNavQt(void* xn_parent_ctx, QWidget* xn_parent_wid,
TreeNavQt::~TreeNavQt()
{
debug_print("TreeNavQt::~TreeNavQt\n");
delete brow;
form_widget->close();
}
......
......@@ -56,6 +56,8 @@ EvListQt::EvListQt(void* ev_parent_ctx, QWidget* ev_parent_wid,
debug_print("creating a scrolledbrowwidgetqt\n");
form_widget = scrolledbrowwidgetqt_new(init_brow_cb, this, &brow_widget);
form_widget->show();
*w = form_widget;
}
......
......@@ -502,6 +502,9 @@ OpQt::~OpQt()
sup_timerid->remove();
delete sup_timerid;
}
if (wow) {
delete wow;
}
}
void OpQtWidget::closeEvent(QCloseEvent* event)
......
......@@ -54,5 +54,5 @@ XttOTreeQt::XttOTreeQt(QWidget* parent_wid, void* xn_parent_ctx,
XttOTreeQt::~XttOTreeQt()
{
debug_print("XttOTreeQt::~XttOTreeQt\n");
delete cowtree;
}
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