Fixes issues when test playback fails to find an object.
Fixes multiple issues when test playback failed to find an object.
- The failure message was printed out twice. Fixed that. Only 1 call to
qCritical()
is sufficient. -
qCritical() << QString()
causes the '\n's to be escaped. Avoid that by converting QString tochar*
. - Don't report crazy long list of possible matches or available
widgets. That's very useless and makes terminal (or output log)
unreadable. Limit it to 20 matches (configurable by environment variable
PQOBJECTNAMING_MATCH_LIMIT
).
Edited by Utkarsh Ayachit