Commit d4754c0d authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Removed QTreeView header row.

parent 494941b3
...@@ -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>
...@@ -1489,6 +1490,7 @@ BootDialog::BootDialog(WttQt* parent_ctx, QWidget* parent) ...@@ -1489,6 +1490,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, "");
......
...@@ -248,7 +248,7 @@ CoWowListWidgetQt::CoWowListWidgetQt(QWidget* parent, const char* title, ...@@ -248,7 +248,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,
...@@ -347,4 +347,4 @@ void GeItemViewQt::contextMenuEvent(QContextMenuEvent *mouseEvent) ...@@ -347,4 +347,4 @@ void GeItemViewQt::contextMenuEvent(QContextMenuEvent *mouseEvent)
void GeItemViewQt::autosave_toggled(int set) void GeItemViewQt::autosave_toggled(int set)
{ {
} }
\ No newline at end of file
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