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[])
unsigned int itemcnt;
char servername[40] = "";
setDebug(1);
// Get options
for (int i = 1; i < argc; i++) {
if (streq(argv[i], "-s") && i + 1 < argc) {
......
......@@ -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",
"zoom-out");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-reset");
"zoom-original");
// Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
......@@ -307,7 +307,7 @@ XttTblQt::XttTblQt(QWidget* a_parent_wid, void* a_parent_ctx,
cmd_recall = new CoWowRecall();
cmd_entry = new CoWowEntryQt(cmd_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(editing_finished()), toplevel,
QObject::connect(cmd_entry, SIGNAL(returnPressed()), toplevel,
SLOT(valchanged_cmd_input()));
statusbar->addWidget(msg_label);
......@@ -354,3 +354,8 @@ XttTblQt::XttTblQt(QWidget* a_parent_wid, void* a_parent_ctx,
}
}
}
XttTblQt::~XttTblQt()
{
delete tblnav;
}
......@@ -51,6 +51,7 @@ class XttTblQt : public XttTbl {
public:
XttTblQt(QWidget* a_parent_wid, void* a_parent_ctx, sevcli_tCtx a_sevcli,
sevcli_sHistItem* itemlist, int item_cnt);
~XttTblQt();
XttTblQtWidget* toplevel;
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