Commit 3eaf7f35 authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Added destructor to XColWind.

parent 4f53a68d
......@@ -406,9 +406,14 @@ void XColWindQt::print()
CoWowQt::CreateBrowPrintDialogQt(title, xattnav->brow->ctx, ((XAttNavQt*)xattnav)->brow_widget);
}
XColWindQt::~XColWindQt()
{
delete xattnav;
delete cmd_entry;
}
void XColWindQtWidget::closeEvent(QCloseEvent* event)
{
debug_print("XColWindQtWidget::closeEvent\n");
if (colwind->close_cb) {
(colwind->close_cb)(colwind->parent_ctx, colwind);
} else {
......@@ -461,7 +466,7 @@ XColWindQt::XColWindQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
addMenuItem(toplevel, functions, "Change &Value",
SLOT(activate_change_value()), "CTRL+Q");
addMenuItem(toplevel, functions, "C&lose Change Value",
SLOT(change_value_close()), "CTRL+T");
SLOT(activate_close_changeval()), "CTRL+T");
addMenuItem(toplevel, functions, "Open &Program", SLOT(activate_open_plc()),
"CTRL+L");
addMenuItem(toplevel, functions, "&Display object in Navigator",
......
......@@ -54,6 +54,8 @@ public:
XColWindQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
pwr_sAttrRef* xa_objar, char* xa_title, int xa_advanced_user,
xcolwind_eType xa_type, int* xa_sts);
~XColWindQt();
QWidget* brow_widget;
QWidget* form_widget;
QLabel* msg_label;
......
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