diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-07-16 12:22:34 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2024-07-18 22:15:29 +0200 |
| commit | 1b7c33c27728879d631611a8f626d1846a47ecee (patch) | |
| tree | 740662624c89291b6f806abbb2440712961a238b /src/quickcontrols/doc/snippets/qtquickcontrols-menu-createObject.qml | |
| parent | df45340f38399aedf2432e1ac0b48b5ea8fcaed2 (diff) | |
Logging: use qCDebug/Warning/Info for categorized logging
When building qt with QT_NO_DEBUG/WARNING/INFO_OUTPUT set, then the
qDebug/Warning/Info macros expand to `QMessageLogger::noDebug`. That
helper is not defined to take a logging category or category function,
so using `qDebug(lcX, ...)` breaks the build. The correct way to emit
categorized logging is to use the qCDebug/Warning/Info macros.
Task-number: QTBUG-125589
Change-Id: Ia7043403aad4e8d4c7c081598e4a556e7ef8461a
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
(cherry picked from commit 03d07d83c7b6316ac3a804f321a6fe70c27d7a21)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 7c71467873fb7f7e1172878176872e286145621c)
(cherry picked from commit bc5f1cdcf3019f66610b67fea5835356e45d7f59)
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/quickcontrols/doc/snippets/qtquickcontrols-menu-createObject.qml')
0 files changed, 0 insertions, 0 deletions
