diff options
author | Carl Schwan <carl@carlschwan.eu> | 2024-04-04 11:51:29 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2024-04-11 00:29:48 +0200 |
commit | 39cb76db8bc5abaeece6672ef8e00a92fcb60a3c (patch) | |
tree | b558b009a318c6ae0fab81598c330024111259d6 /src/qml/qml | |
parent | 034eb34219bdfcffe2676e3d41bd48797cad8a2c (diff) |
Improve deprecation message of object to signal handler assignment
The current deprecation message doesn't give any hint where the issue
could be, so at least indicate which object type is assigned to the
signal handler.
Change-Id: I85ee4411d7f4c9a4b36425d925a3934b9ee520c8
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Sami Shalayel <sami.shalayel@qt.io>
Diffstat (limited to 'src/qml/qml')
-rw-r--r-- | src/qml/qml/qqmlobjectcreator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlobjectcreator.cpp b/src/qml/qml/qqmlobjectcreator.cpp index 4d1ed17cb0..a9b9140390 100644 --- a/src/qml/qml/qqmlobjectcreator.cpp +++ b/src/qml/qml/qqmlobjectcreator.cpp @@ -1141,8 +1141,8 @@ bool QQmlObjectCreator::setPropertyBinding(const QQmlPropertyData *bindingProper return false; } qCWarning(lcQmlDefaultMethod) << "Assigning an object to a signal handler is deprecated. " - "Instead, create the object, give it an id, and call the desired slot from the signal handler." - ; + "Instead, create the object, give it an id, and call the desired slot " + "from the signal handler. The object is:" << createdSubObject; QMetaMethod signalMethod = _qobject->metaObject()->method(bindingProperty->coreIndex()); if (!QMetaObject::checkConnectArgs(signalMethod, method)) { |