summaryrefslogtreecommitdiffstats
path: root/tests/auto/xmlpatternsxqts/lib/TestGroup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/xmlpatternsxqts/lib/TestGroup.cpp')
-rw-r--r--tests/auto/xmlpatternsxqts/lib/TestGroup.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/xmlpatternsxqts/lib/TestGroup.cpp b/tests/auto/xmlpatternsxqts/lib/TestGroup.cpp
index 060f993..e59e4b4 100644
--- a/tests/auto/xmlpatternsxqts/lib/TestGroup.cpp
+++ b/tests/auto/xmlpatternsxqts/lib/TestGroup.cpp
@@ -94,7 +94,7 @@ TestGroup::TestGroup(TreeItem *p) : m_parent(p)
QVariant TestGroup::data(const Qt::ItemDataRole role, int column) const
{
- if(role != Qt::DisplayRole && role != Qt::BackgroundRole)
+ if(role != Qt::DisplayRole && role != Qt::BackgroundRole && role != Qt::ToolTipRole)
return QVariant();
/* In ResultSummary, the first is the amount of passes and the second is the total. */
@@ -154,6 +154,10 @@ QVariant TestGroup::data(const Qt::ItemDataRole role, int column) const
return QVariant();
}
}
+ case Qt::ToolTipRole:
+ {
+ return description();
+ }
default:
{
Q_ASSERT_X(false, Q_FUNC_INFO, "This shouldn't be reached");