diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-02-06 07:07:44 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-02-06 07:07:44 +0100 |
commit | 4e9006769e3554524096d45f8a1ce16ccfa78bfc (patch) | |
tree | f5f8fec5c3c1741594ed8d82c037697e7b61485a /data | |
parent | 00893b3cfc68f12c09e84643d255044a488b0eb6 (diff) | |
download | PrismLauncher-4e9006769e3554524096d45f8a1ce16ccfa78bfc.tar.gz PrismLauncher-4e9006769e3554524096d45f8a1ce16ccfa78bfc.tar.bz2 PrismLauncher-4e9006769e3554524096d45f8a1ce16ccfa78bfc.zip |
Some minor changes in the instance model and control
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 |