This request is superseded by
request 887626
(Show diff)
Overview
Request 887596 superseded
- When using QT_DEBUG_TIMER, check if parent is set before following pointer.
- Created by paulfee
- In state superseded
- Supersedes 887529
- Superseded by 887626
Loading...
Login required, please
login
in order to comment
Can be simplified to a two-line diff:
QString objPath = o->objectName(); if(objPath.isEmpty() && o->parent()) objPath = QLatin1String("<") + o->parent()->metaObject()->className() + QLatin1String(">"); else if(objPath.isEmpty() && !!o->parent()) objPath = QLatin1String("<No parent, no name>"); for (; o->parent(); o = o->parent()) ...
Though I'm wondering why you still bother with libqt4...
author
That two-line diff would missing the part: else objPath.prepend(QLatin1String("<No parent>"));
However, that's acceptable as one could tell that "objPath = o->objectName();" occurred and the for loop had zero iterations. I'll apply your suggestion.
As for libqt4, I'm debugging an application on Leap 15.2 that uses this version of Qt.
Login required, please
login
in order to comment
Request History
paulfee created request
- When using QT_DEBUG_TIMER, check if parent is set before following pointer.