summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@theqtcompany.com>2015-10-29 12:16:30 +0100
committerChristian Stenger <christian.stenger@theqtcompany.com>2015-11-03 14:37:26 +0000
commitfa9912f3ad774bf71230ce9239b1e548c572c61a (patch)
tree98abf32fbee816c41eaef50527979f1b989ccaa1
parent128995b272998e998fc8c1aacc8e4a1449bd4ac8 (diff)
downloadqt-creator-fa9912f3ad774bf71230ce9239b1e548c572c61a.tar.gz
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.cpp1
-rw-r--r--plugins/autotest/testtreemodel.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/autotest/testtreeitem.cpp b/plugins/autotest/testtreeitem.cpp
index 6c29f886e8..d25964cfb5 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 49e28c3ba3..c59d69a745 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;
}