summaryrefslogtreecommitdiffstats
path: root/tests/auto/xmlpatternsxqts/lib/TestGroup.cpp
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-07-15 15:30:08 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-07-15 15:30:08 (GMT)
commitfbfc03eb8e7c3d41c4331895ae83912a4275e6c2 (patch)
treeae6b553899bba4922d1210b0f8dc8da994834bc7 /tests/auto/xmlpatternsxqts/lib/TestGroup.cpp
parent2d01fb17dbf7590dd60987b08433252eb95f55e0 (diff)
parent9075ec9011e5f678563ab15024e8d9731e938963 (diff)
downloadQt-fbfc03eb8e7c3d41c4331895ae83912a4275e6c2.zip
Qt-fbfc03eb8e7c3d41c4331895ae83912a4275e6c2.tar.gz
Qt-fbfc03eb8e7c3d41c4331895ae83912a4275e6c2.tar.bz2
Merge branch 'master' of git@scm.dev.nokia.troll.no:qt/qt
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 40a3a9d..458a553 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");