forked from qt-creator/qt-creator
Don't display checkboxes for data tags...
..as they can't be (un)checked at all. Might make sense later on but at the current state of data tag support they're completely useless. Change-Id: I3b2b79e1d2aa445fcd12d6794151d1833040aa76 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
This commit is contained in:
@@ -101,6 +101,7 @@ QVariant TestTreeItem::data(int /*column*/, int role) const
|
||||
case ROOT:
|
||||
case TEST_DATAFUNCTION:
|
||||
case TEST_SPECIALFUNCTION:
|
||||
case TEST_DATATAG:
|
||||
return QVariant();
|
||||
case TEST_CLASS:
|
||||
return m_name.isEmpty() ? QVariant() : checked();
|
||||
|
@@ -169,6 +169,7 @@ Qt::ItemFlags TestTreeModel::flags(const QModelIndex &index) const
|
||||
return Qt::ItemIsEnabled;
|
||||
case TestTreeItem::TEST_DATAFUNCTION:
|
||||
case TestTreeItem::TEST_SPECIALFUNCTION:
|
||||
case TestTreeItem::TEST_DATATAG:
|
||||
default:
|
||||
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
|
||||
}
|
||||
|
Reference in New Issue
Block a user