Commit e3f1931c authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Added destructor to XttTblQt.

parent 497d030e
...@@ -59,6 +59,8 @@ int main(int argc, char* argv[]) ...@@ -59,6 +59,8 @@ int main(int argc, char* argv[])
unsigned int itemcnt; unsigned int itemcnt;
char servername[40] = ""; char servername[40] = "";
setDebug(1);
// Get options // Get options
for (int i = 1; i < argc; i++) { for (int i = 1; i < argc; i++) {
if (streq(argv[i], "-s") && i + 1 < argc) { if (streq(argv[i], "-s") && i + 1 < argc) {
......
...@@ -276,7 +276,7 @@ XttTblQt::XttTblQt(QWidget* a_parent_wid, void* a_parent_ctx, ...@@ -276,7 +276,7 @@ XttTblQt::XttTblQt(QWidget* a_parent_wid, void* a_parent_ctx,
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "zoom-out");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-reset"); "zoom-original");
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
...@@ -307,7 +307,7 @@ XttTblQt::XttTblQt(QWidget* a_parent_wid, void* a_parent_ctx, ...@@ -307,7 +307,7 @@ XttTblQt::XttTblQt(QWidget* a_parent_wid, void* a_parent_ctx,
cmd_recall = new CoWowRecall(); cmd_recall = new CoWowRecall();
cmd_entry = new CoWowEntryQt(cmd_recall); cmd_entry = new CoWowEntryQt(cmd_recall);
cmd_entry->setFixedHeight(25); cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editing_finished()), toplevel, QObject::connect(cmd_entry, SIGNAL(returnPressed()), toplevel,
SLOT(valchanged_cmd_input())); SLOT(valchanged_cmd_input()));
statusbar->addWidget(msg_label); statusbar->addWidget(msg_label);
...@@ -353,4 +353,9 @@ XttTblQt::XttTblQt(QWidget* a_parent_wid, void* a_parent_ctx, ...@@ -353,4 +353,9 @@ XttTblQt::XttTblQt(QWidget* a_parent_wid, void* a_parent_ctx,
((CoWowQt*)wow)->SetParent(toplevel); ((CoWowQt*)wow)->SetParent(toplevel);
} }
} }
} }
\ No newline at end of file
XttTblQt::~XttTblQt()
{
delete tblnav;
}
...@@ -51,6 +51,7 @@ class XttTblQt : public XttTbl { ...@@ -51,6 +51,7 @@ class XttTblQt : public XttTbl {
public: public:
XttTblQt(QWidget* a_parent_wid, void* a_parent_ctx, sevcli_tCtx a_sevcli, XttTblQt(QWidget* a_parent_wid, void* a_parent_ctx, sevcli_tCtx a_sevcli,
sevcli_sHistItem* itemlist, int item_cnt); sevcli_sHistItem* itemlist, int item_cnt);
~XttTblQt();
XttTblQtWidget* toplevel; XttTblQtWidget* toplevel;
QWidget* brow_widget; QWidget* brow_widget;
......
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