aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
diff options
context:
space:
mode:
authorVolker Hilsheimer <volker.hilsheimer@qt.io>2024-07-16 12:22:34 +0200
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2024-07-17 12:14:46 +0200
commit03d07d83c7b6316ac3a804f321a6fe70c27d7a21 (patch)
tree9d26339206ba9fe74018bed1ec20f2a21b203b43 /tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp
parentd0c358b1ee64f2a27b69ce575e625a65fd4dcc4c (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 Pick-to: 6.8 6.7 6.5 Change-Id: Ia7043403aad4e8d4c7c081598e4a556e7ef8461a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlcppcodegen/tst_qmlcppcodegen.cpp')
0 files changed, 0 insertions, 0 deletions