Some minor changes in the instance model and control
This commit is contained in:
parent
00893b3cfc
commit
4e9006769e
2 changed files with 12 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue