diff --git a/plugins/autotest/testtreeitem.cpp b/plugins/autotest/testtreeitem.cpp
index 6c29f886e85f48a28ed5e7f3c58903f0253218ef..d25964cfb5e33b7fc10dd82cd9fd8369b174e6d0 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 49e28c3ba354c933c9cce2d6540924b52f00c352..c59d69a745786f62baf82e6239550c3579652e46 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;
     }