Commit fa9912f3 authored by Christian Stenger's avatar Christian Stenger
Browse files

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: default avatarNiels Weber <niels.weber@theqtcompany.com>
parent 128995b2
......@@ -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;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment