diff options
Diffstat (limited to 'data')
-rw-r--r-- | data/instancemodel.cpp | 5 |
1 files changed, 1 insertions, 4 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 |