aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/autotest/testtreeitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/autotest/testtreeitem.h')
-rw-r--r--plugins/autotest/testtreeitem.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/autotest/testtreeitem.h b/plugins/autotest/testtreeitem.h
index 79bb7e6c18..8a442e7f84 100644
--- a/plugins/autotest/testtreeitem.h
+++ b/plugins/autotest/testtreeitem.h
@@ -24,6 +24,18 @@
#include <QString>
#include <QMetaType>
+QT_BEGIN_NAMESPACE
+class QVariant;
+QT_END_NAMESPACE
+
+namespace {
+ enum ItemRole {
+ LinkRole = Qt::UserRole + 2, // can be removed if AnnotationRole comes back
+ ItalicRole, // used only inside the delegate
+ TypeRole
+ };
+}
+
namespace Autotest {
namespace Internal {
@@ -48,6 +60,8 @@ public:
TestTreeItem *child(int row) const;
TestTreeItem *parent() const;
void appendChild(TestTreeItem *child);
+ QVariant data(int column, int role) const;
+ bool setData(int column, const QVariant &data, int role);
int row() const;
int childCount() const;
void removeChildren();