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:
parent
7c12cd0ebb
commit
fd644f3bd0
@ -253,12 +253,10 @@ private:
|
|||||||
{
|
{
|
||||||
QString rc;
|
QString rc;
|
||||||
QDebug str = QDebug(&rc).nospace();
|
QDebug str = QDebug(&rc).nospace();
|
||||||
str << "Event " << needle->object() << ", type: "
|
str << "Event " << *needle
|
||||||
<< needle->type() << ", child: " << needle->child()
|
<< " not found at head of event list of size " << haystack.size() << " :";
|
||||||
<< " not found at head of event list of size " << haystack.size() << " :";
|
|
||||||
Q_FOREACH (const QAccessibleEvent *e, haystack)
|
Q_FOREACH (const QAccessibleEvent *e, haystack)
|
||||||
str << ' ' << e->object() << ", type: "
|
str << ' ' << *e;
|
||||||
<< e->type() << ", child: " << e->child();
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user