diff options
author | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-10-29 12:16:30 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-11-03 14:37:26 +0000 |
commit | fa9912f3ad774bf71230ce9239b1e548c572c61a (patch) | |
tree | 98abf32fbee816c41eaef50527979f1b989ccaa1 | |
parent | 128995b272998e998fc8c1aacc8e4a1449bd4ac8 (diff) |
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>
-rw-r--r-- | plugins/autotest/testtreeitem.cpp | 1 | ||||
-rw-r--r-- | plugins/autotest/testtreemodel.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/autotest/testtreeitem.cpp b/plugins/autotest/testtreeitem.cpp index 6c29f886e85..d25964cfb5e 100644 --- a/plugins/autotest/testtreeitem.cpp +++ b/plugins/autotest/testtreeitem.cpp @@ -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(); diff --git a/plugins/autotest/testtreemodel.cpp b/plugins/autotest/testtreemodel.cpp index 49e28c3ba35..c59d69a7457 100644 --- a/plugins/autotest/testtreemodel.cpp +++ b/plugins/autotest/testtreemodel.cpp @@ -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; } |