qtslib: use Q_STATIC_LOGGING_CATEGORY
Because the deprecation warning tells us to do so: qloggingcategory.h:168:67: warning: ‘const QLoggingCategory& qLcTsLib() [with <template-parameter-1-1> = void]’ is deprecated: Use Q_STATIC_LOGGING_CATEGORY or add either Q_DECLARE_LOGGING_CATEGORY or QT_DECLARE_EXPORTED_QT_LOGGING_CATEGORY in a header [-Wdeprecated-declarations] qtslib.cpp:20:20: note: declared here 20 | Q_LOGGING_CATEGORY(qLcTsLib, "qt.qpa.input") | ^~~~~~~~ Pick-to: 6.8 Change-Id: I2034c98d322bce24f56afffdb92821930dcf5683 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
parent
3370723584
commit
9fa8977b61
@ -17,7 +17,7 @@ QT_BEGIN_NAMESPACE
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
|
||||
Q_LOGGING_CATEGORY(qLcTsLib, "qt.qpa.input")
|
||||
Q_STATIC_LOGGING_CATEGORY(qLcTsLib, "qt.qpa.input")
|
||||
|
||||
QTsLibMouseHandler::QTsLibMouseHandler(const QString &key,
|
||||
const QString &specification,
|
||||
|
Loading…
x
Reference in New Issue
Block a user