summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-04-02 20:51:55 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-30 09:05:19 +0200
commitfd644f3bd0eee59a9cacfd0dd51a620c31c8e87d (patch)
tree0143ceed9f8a7448650883403117904a86a38d5b /src
parent7c12cd0ebb465b6d0714a22d5630872e600be654 (diff)
Improve accessibility event failure output
Simpler code and more information ;) Change-Id: I5ca6b2ee88e51dbbd3ec2f08c4ea79bc11b649fa Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
Diffstat (limited to 'src')
-rw-r--r--src/testlib/qtestaccessible.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/testlib/qtestaccessible.h b/src/testlib/qtestaccessible.h
index f27651c3ad..ef6f61bd82 100644
--- a/src/testlib/qtestaccessible.h
+++ b/src/testlib/qtestaccessible.h
@@ -253,12 +253,10 @@ private:
{
QString rc;
QDebug str = QDebug(&rc).nospace();
- str << "Event " << needle->object() << ", type: "
- << needle->type() << ", child: " << needle->child()
- << " not found at head of event list of size " << haystack.size() << " :";
+ str << "Event " << *needle
+ << " not found at head of event list of size " << haystack.size() << " :";
Q_FOREACH (const QAccessibleEvent *e, haystack)
- str << ' ' << e->object() << ", type: "
- << e->type() << ", child: " << e->child();
+ str << ' ' << *e;
return rc;
}