QWaylandClientExtensionTemplate: reflow qWarning() in bind()

As suggested in 6.9 API-review, reflow the long line and put the
interface.name onto a separate line in the log output.

Amends 8784a01787f72bfea7124ecb2b896ebf644d1824.

Pick-to: 6.9
Change-Id: I12f00b65d7b22ac9330b25faca28edaa7a159a3a
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
Marc Mutz 2025-01-05 11:52:08 +01:00
parent ae3d9aa081
commit 9bb48c315c
2 changed files with 6 additions and 2 deletions

View File

@ -84,7 +84,9 @@ public:
// developer and the version specified in the protocol and also the
// compositor version.
if (this->version() > T::interface()->version) {
qWarning("Supplied protocol version to QWaylandClientExtensionTemplate is higher than the version of the protocol, using protocol version instead. interface.name: %s",
qWarning("Supplied protocol version to QWaylandClientExtensionTemplate is higher "
"than the version of the protocol, using protocol version instead.\n"
" interface.name: %s",
T::interface()->name);
}
int minVersion = qMin(ver, qMin(T::interface()->version, this->version()));

View File

@ -81,7 +81,9 @@ public:
// developer and the version specified in the protocol and also the
// compositor version.
if (this->version() > T::interface()->version) {
qWarning("Supplied protocol version to QWaylandClientExtensionTemplate is higher than the version of the protocol, using protocol version instead. interface.name: %s",
qWarning("Supplied protocol version to QWaylandClientExtensionTemplate is higher "
"than the version of the protocol, using protocol version instead.\n"
" interface.name: %s",
T::interface()->name);
}
int minVersion = qMin(ver, qMin(T::interface()->version, this->version()));