summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--data/instancemodel.cpp5
-rw-r--r--gui/mainwindow.ui9
2 files changed, 10 insertions, 4 deletions
diff --git a/data/instancemodel.cpp b/data/instancemodel.cpp
index fbdb8212..0f1e59f6 100644
--- a/data/instancemodel.cpp
+++ b/data/instancemodel.cpp
@@ -197,12 +197,9 @@ QVariant InstanceModel::data ( const QModelIndex& index, int role ) const
if (!index.isValid())
return QVariant();
- if (role != Qt::DisplayRole)
- return QVariant();
-
InstanceModelItem *item = static_cast<InstanceModelItem*>(index.internalPointer());
- return item->data(index.column());
+ return item->data(role);
}
QModelIndex InstanceModel::index ( int row, int column, const QModelIndex& parent ) const
diff --git a/gui/mainwindow.ui b/gui/mainwindow.ui
index bc58f7f8..137f7e97 100644
--- a/gui/mainwindow.ui
+++ b/gui/mainwindow.ui
@@ -35,6 +35,15 @@
</property>
<item>
<widget class="QTreeView" name="instanceView">
+ <property name="animated">
+ <bool>true</bool>
+ </property>
+ <property name="allColumnsShowFocus">
+ <bool>true</bool>
+ </property>
+ <attribute name="headerVisible">
+ <bool>false</bool>
+ </attribute>
<property name="contextMenuPolicy">
<enum>Qt::CustomContextMenu</enum>
</property>