Improve accessibility event failure output

Simpler code and more information ;)

Change-Id: I5ca6b2ee88e51dbbd3ec2f08c4ea79bc11b649fa
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
This commit is contained in:
Frederik Gladhorn 2014-04-02 20:51:55 +02:00 committed by The Qt Project
parent 7c12cd0ebb
commit fd644f3bd0

View File

@ -253,12 +253,10 @@ private:
{
QString rc;
QDebug str = QDebug(&rc).nospace();
str << "Event " << needle->object() << ", type: "
<< needle->type() << ", child: " << needle->child()
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;
}