summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--data/instancemodel.cpp5
-rw-r--r--gui/mainwindow.ui12
2 files changed, 12 insertions, 5 deletions
diff --git a/data/instancemodel.cpp b/data/instancemodel.cpp
index 239be5c5..44d2844b 100644
--- a/data/instancemodel.cpp
+++ b/data/instancemodel.cpp
@@ -143,12 +143,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 ccc7e777..5abfb37d 100644
--- a/gui/mainwindow.ui
+++ b/gui/mainwindow.ui
@@ -34,7 +34,17 @@
<number>0</number>
</property>
<item>
- <widget class="QTreeView" name="instanceView"/>
+ <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>
+ </widget>
</item>
</layout>
</widget>