Commit 6a4c3e62 authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Added xtt_xcrr destructor.

parent 2718542e
...@@ -97,7 +97,6 @@ void XCrrQt::print() ...@@ -97,7 +97,6 @@ void XCrrQt::print()
void XCrrQtWidget::closeEvent(QCloseEvent* event) void XCrrQtWidget::closeEvent(QCloseEvent* event)
{ {
debug_print("XCrrQtWidget::closeEvent\n");
if (xcrr->close_cb) { if (xcrr->close_cb) {
(xcrr->close_cb)(xcrr->parent_ctx, xcrr); (xcrr->close_cb)(xcrr->parent_ctx, xcrr);
} else { } else {
...@@ -106,6 +105,11 @@ void XCrrQtWidget::closeEvent(QCloseEvent* event) ...@@ -106,6 +105,11 @@ void XCrrQtWidget::closeEvent(QCloseEvent* event)
QWidget::closeEvent(event); QWidget::closeEvent(event);
} }
XCrrQt::~XCrrQt()
{
delete xcrrnav;
}
XCrrQt::XCrrQt(QWidget* xa_parent_wid, void* xa_parent_ctx, XCrrQt::XCrrQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
pwr_sAttrRef* xa_objar, int xa_advanced_user, int* xa_sts) pwr_sAttrRef* xa_objar, int xa_advanced_user, int* xa_sts)
: XCrr(xa_parent_ctx, xa_objar, xa_advanced_user, xa_sts) : XCrr(xa_parent_ctx, xa_objar, xa_advanced_user, xa_sts)
......
...@@ -49,6 +49,7 @@ class XCrrQt : public XCrr { ...@@ -49,6 +49,7 @@ class XCrrQt : public XCrr {
public: public:
XCrrQt(QWidget* xa_parent_wid, void* xa_parent_ctx, pwr_sAttrRef* xa_objar, XCrrQt(QWidget* xa_parent_wid, void* xa_parent_ctx, pwr_sAttrRef* xa_objar,
int xa_advanced_user, int* xa_sts); int xa_advanced_user, int* xa_sts);
~XCrrQt();
QWidget* brow_widget; QWidget* brow_widget;
QWidget* form_widget; QWidget* form_widget;
CoWowFocusTimerQt focustimer; CoWowFocusTimerQt focustimer;
......
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