Commit dd794844 authored by Christoffer Ackelman's avatar Christoffer Ackelman Committed by Esteban Blanc

QT: Closed the QTreeView header row.

parent c20e434d
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
#include <QApplication> #include <QApplication>
#include <QCloseEvent> #include <QCloseEvent>
#include <QDialogButtonBox> #include <QDialogButtonBox>
#include <QHeaderView>
#include <QInputDialog> #include <QInputDialog>
#include <QMenu> #include <QMenu>
#include <QMenuBar> #include <QMenuBar>
...@@ -1493,6 +1494,7 @@ BootDialog::BootDialog(WttQt* parent_ctx, QWidget* parent) ...@@ -1493,6 +1494,7 @@ BootDialog::BootDialog(WttQt* parent_ctx, QWidget* parent)
boot_list = new QTreeWidget(); boot_list = new QTreeWidget();
boot_list->setColumnCount(1); boot_list->setColumnCount(1);
boot_list->header()->close();
pwr_tString40 nodename; pwr_tString40 nodename;
strcpy(nodename, ""); strcpy(nodename, "");
......
...@@ -257,7 +257,7 @@ CoWowListWidgetQt::CoWowListWidgetQt(QWidget* parent, const char* title, ...@@ -257,7 +257,7 @@ CoWowListWidgetQt::CoWowListWidgetQt(QWidget* parent, const char* title,
name_p += textsize; name_p += textsize;
} }
list->header()->hide(); list->header()->close();
connect(list, SIGNAL(itemActivated(QTreeWidgetItem*, int)), this, connect(list, SIGNAL(itemActivated(QTreeWidgetItem*, int)), this,
SLOT(list_row_activated_cb(QTreeWidgetItem*, int))); SLOT(list_row_activated_cb(QTreeWidgetItem*, int)));
......
...@@ -65,7 +65,7 @@ GeItemViewQt::GeItemViewQt(Ge* gectx) : QWidget(), ge_ctx(gectx), tree_widget(0) ...@@ -65,7 +65,7 @@ GeItemViewQt::GeItemViewQt(Ge* gectx) : QWidget(), ge_ctx(gectx), tree_widget(0)
SLOT(activate_tree_widget(QTreeWidgetItem*, int))); SLOT(activate_tree_widget(QTreeWidgetItem*, int)));
tree_widget->setColumnCount(1); tree_widget->setColumnCount(1);
tree_widget->header()->hide(); tree_widget->header()->close();
autosave_button = new QCheckBox("Autosave", this); autosave_button = new QCheckBox("Autosave", this);
connect(autosave_button, SIGNAL(stateChanged(int)), this, connect(autosave_button, SIGNAL(stateChanged(int)), this,
......
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