Add information about problematic object to warning message
Otherwise it's rather impossible to find the issue in the QML code. Change-Id: I894886feb58864503e6ffd2dd28626e68d623aae Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
This commit is contained in:
parent
255c041324
commit
6ed3c5eda2
|
@ -1377,8 +1377,7 @@ static void QQmlComponent_setQmlParent(QObject *me, QObject *parent)
|
|||
}
|
||||
}
|
||||
if (needParent)
|
||||
qWarning("QQmlComponent: Created graphical object was not "
|
||||
"placed in the graphics scene.");
|
||||
qmlWarning(me) << "Created graphical object was not placed in the graphics scene.";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue