diff options
author | Ulf Hermann <[email protected]> | 2024-06-21 09:10:08 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2024-06-24 09:27:30 +0200 |
commit | 16462f18050c5813c1676e6f7bb714a973978d42 (patch) | |
tree | 18decf7edbea47698b24f11a939e31ea0c7a14de | |
parent | c62efe4d7f192feba1697b4c6fc57fe622fb6481 (diff) |
Make more logging categories static
Non-static, non-forward-declared logging categories are deprecated.
Change-Id: Iaeb0183ef7ca05bbd0f4587166096c29825cc175
Reviewed-by: Fabian Kosmale <[email protected]>
30 files changed, 48 insertions, 45 deletions
diff --git a/src/core/qqmlsettings.cpp b/src/core/qqmlsettings.cpp index 0b3bc9ebd3..463d122860 100644 --- a/src/core/qqmlsettings.cpp +++ b/src/core/qqmlsettings.cpp @@ -200,7 +200,7 @@ QT_BEGIN_NAMESPACE using namespace Qt::StringLiterals; -Q_LOGGING_CATEGORY(lcQmlSettings, "qt.core.settings") +Q_STATIC_LOGGING_CATEGORY(lcQmlSettings, "qt.core.settings") static constexpr const int settingsWriteDelay = 500; diff --git a/src/labs/platform/qquicklabsplatformsystemtrayicon.cpp b/src/labs/platform/qquicklabsplatformsystemtrayicon.cpp index dee37a50f7..4bc46ce729 100644 --- a/src/labs/platform/qquicklabsplatformsystemtrayicon.cpp +++ b/src/labs/platform/qquicklabsplatformsystemtrayicon.cpp @@ -130,7 +130,7 @@ QT_BEGIN_NAMESPACE \sa showMessage() */ -Q_LOGGING_CATEGORY(qtLabsPlatformTray, "qt.labs.platform.tray") +Q_STATIC_LOGGING_CATEGORY(qtLabsPlatformTray, "qt.labs.platform.tray") QQuickLabsPlatformSystemTrayIcon::QQuickLabsPlatformSystemTrayIcon(QObject *parent) : QObject(parent), diff --git a/src/labs/settings/qqmlsettings.cpp b/src/labs/settings/qqmlsettings.cpp index 52220f6c8f..e012ec408d 100644 --- a/src/labs/settings/qqmlsettings.cpp +++ b/src/labs/settings/qqmlsettings.cpp @@ -201,7 +201,7 @@ QT_BEGIN_NAMESPACE \sa {QtCore::}{Settings}, QSettings */ -Q_LOGGING_CATEGORY(lcSettings, "qt.labs.settings") +Q_STATIC_LOGGING_CATEGORY(lcSettings, "qt.labs.settings") static const int settingsWriteDelay = 500; diff --git a/src/quick/handlers/qquickdragaxis.cpp b/src/quick/handlers/qquickdragaxis.cpp index 84b1b7ee07..7d8203eb06 100644 --- a/src/quick/handlers/qquickdragaxis.cpp +++ b/src/quick/handlers/qquickdragaxis.cpp @@ -7,7 +7,7 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcDragAxis, "qt.quick.pointer.dragaxis") +Q_STATIC_LOGGING_CATEGORY(lcDragAxis, "qt.quick.pointer.dragaxis") QQuickDragAxis::QQuickDragAxis(QQuickPointerHandler *handler, const QString &propertyName, qreal initValue) : QObject(handler), m_accumulatedValue(initValue), m_propertyName(propertyName) diff --git a/src/quick/handlers/qquickdraghandler.cpp b/src/quick/handlers/qquickdraghandler.cpp index 930f00d2f3..3d5f26b43a 100644 --- a/src/quick/handlers/qquickdraghandler.cpp +++ b/src/quick/handlers/qquickdraghandler.cpp @@ -10,7 +10,7 @@ QT_BEGIN_NAMESPACE static const qreal DragAngleToleranceDegrees = 10; -Q_LOGGING_CATEGORY(lcDragHandler, "qt.quick.handler.drag") +Q_STATIC_LOGGING_CATEGORY(lcDragHandler, "qt.quick.handler.drag") /*! \qmltype DragHandler diff --git a/src/quick/handlers/qquickhoverhandler.cpp b/src/quick/handlers/qquickhoverhandler.cpp index 5bf53235c5..863275c087 100644 --- a/src/quick/handlers/qquickhoverhandler.cpp +++ b/src/quick/handlers/qquickhoverhandler.cpp @@ -8,7 +8,7 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcHoverHandler, "qt.quick.handler.hover") +Q_STATIC_LOGGING_CATEGORY(lcHoverHandler, "qt.quick.handler.hover") /*! \qmltype HoverHandler diff --git a/src/quick/handlers/qquicktaphandler.cpp b/src/quick/handlers/qquicktaphandler.cpp index 651a8ce9a9..76f89feb3a 100644 --- a/src/quick/handlers/qquicktaphandler.cpp +++ b/src/quick/handlers/qquicktaphandler.cpp @@ -11,7 +11,7 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcTapHandler, "qt.quick.handler.tap") +Q_STATIC_LOGGING_CATEGORY(lcTapHandler, "qt.quick.handler.tap") quint64 QQuickTapHandler::m_multiTapInterval(0); // single tap distance is the same as the drag threshold diff --git a/src/quick/items/context2d/qquickcontext2dtexture.cpp b/src/quick/items/context2d/qquickcontext2dtexture.cpp index 2dadae3ef7..7a468ee0c5 100644 --- a/src/quick/items/context2d/qquickcontext2dtexture.cpp +++ b/src/quick/items/context2d/qquickcontext2dtexture.cpp @@ -12,7 +12,7 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcCanvas, "qt.quick.canvas") +Q_STATIC_LOGGING_CATEGORY(lcCanvas, "qt.quick.canvas") QQuickContext2DTexture::QQuickContext2DTexture() : m_context(nullptr) diff --git a/src/quick/items/qquicklistview.cpp b/src/quick/items/qquicklistview.cpp index 6d7ddfb0a2..ecc3832a4a 100644 --- a/src/quick/items/qquicklistview.cpp +++ b/src/quick/items/qquicklistview.cpp @@ -22,7 +22,7 @@ QT_BEGIN_NAMESPACE #define QML_FLICK_SNAPONETHRESHOLD 30 #endif -Q_LOGGING_CATEGORY(lcEvents, "qt.quick.listview.events") +Q_STATIC_LOGGING_CATEGORY(lcEvents, "qt.quick.listview.events") class FxListItemSG; diff --git a/src/quick/items/qquickpathview.cpp b/src/quick/items/qquickpathview.cpp index 3fa4125a1d..3fc7de987c 100644 --- a/src/quick/items/qquickpathview.cpp +++ b/src/quick/items/qquickpathview.cpp @@ -23,13 +23,16 @@ #include <cmath> +#if QT_CONFIG(quick_itemview) +#include <private/qquickitemview_p.h> +#endif + QT_BEGIN_NAMESPACE -Q_DECLARE_LOGGING_CATEGORY(lcItemViewDelegateLifecycle) #if !QT_CONFIG(quick_itemview) -Q_LOGGING_CATEGORY(lcItemViewDelegateLifecycle, "qt.quick.itemview.lifecycle") +Q_STATIC_LOGGING_CATEGORY(lcItemViewDelegateLifecycle, "qt.quick.itemview.lifecycle") #endif -Q_LOGGING_CATEGORY(lcPathView, "qt.quick.pathview") +Q_STATIC_LOGGING_CATEGORY(lcPathView, "qt.quick.pathview") static QQmlOpenMetaObjectType *qPathViewAttachedType = nullptr; diff --git a/src/quick/items/qquickpincharea.cpp b/src/quick/items/qquickpincharea.cpp index 482941b9ba..b9e597a789 100644 --- a/src/quick/items/qquickpincharea.cpp +++ b/src/quick/items/qquickpincharea.cpp @@ -17,7 +17,7 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcPA, "qt.quick.pincharea") +Q_STATIC_LOGGING_CATEGORY(lcPA, "qt.quick.pincharea") /*! \qmltype PinchEvent diff --git a/src/quick/items/qquicktextdocument.cpp b/src/quick/items/qquicktextdocument.cpp index a1fb7adcea..d5e7e77897 100644 --- a/src/quick/items/qquicktextdocument.cpp +++ b/src/quick/items/qquicktextdocument.cpp @@ -16,7 +16,7 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcTextDoc, "qt.quick.textdocument") +Q_STATIC_LOGGING_CATEGORY(lcTextDoc, "qt.quick.textdocument") using namespace Qt::StringLiterals; diff --git a/src/quick/items/qquicktextinput.cpp b/src/quick/items/qquicktextinput.cpp index 0826011a54..dd04f1b5be 100644 --- a/src/quick/items/qquicktextinput.cpp +++ b/src/quick/items/qquicktextinput.cpp @@ -31,7 +31,7 @@ QT_BEGIN_NAMESPACE DEFINE_BOOL_CONFIG_OPTION(qmlDisableDistanceField, QML_DISABLE_DISTANCEFIELD) -Q_LOGGING_CATEGORY(lcQuickTextInput, "qt.quick.textInput") +Q_STATIC_LOGGING_CATEGORY(lcQuickTextInput, "qt.quick.textInput") /*! \qmltype TextInput diff --git a/src/quick/scenegraph/adaptations/software/qsgabstractsoftwarerenderer.cpp b/src/quick/scenegraph/adaptations/software/qsgabstractsoftwarerenderer.cpp index c9385630d9..0c2af5e23b 100644 --- a/src/quick/scenegraph/adaptations/software/qsgabstractsoftwarerenderer.cpp +++ b/src/quick/scenegraph/adaptations/software/qsgabstractsoftwarerenderer.cpp @@ -12,7 +12,7 @@ #include <QtGui/QWindow> #include <QtQuick/QSGSimpleRectNode> -Q_LOGGING_CATEGORY(lc2DRender, "qt.scenegraph.softwarecontext.abstractrenderer") +Q_STATIC_LOGGING_CATEGORY(lc2DRender, "qt.scenegraph.softwarecontext.abstractrenderer") QT_BEGIN_NAMESPACE diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarepixmaprenderer.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwarepixmaprenderer.cpp index d269b1ac67..02592ad155 100644 --- a/src/quick/scenegraph/adaptations/software/qsgsoftwarepixmaprenderer.cpp +++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarepixmaprenderer.cpp @@ -8,7 +8,7 @@ #include <QElapsedTimer> -Q_LOGGING_CATEGORY(lcPixmapRenderer, "qt.scenegraph.softwarecontext.pixmapRenderer") +Q_STATIC_LOGGING_CATEGORY(lcPixmapRenderer, "qt.scenegraph.softwarecontext.pixmapRenderer") QT_BEGIN_NAMESPACE diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderablenode.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderablenode.cpp index 79fa4a78ad..33874b4061 100644 --- a/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderablenode.cpp +++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderablenode.cpp @@ -20,7 +20,7 @@ #include <qmath.h> -Q_LOGGING_CATEGORY(lcRenderable, "qt.scenegraph.softwarecontext.renderable") +Q_STATIC_LOGGING_CATEGORY(lcRenderable, "qt.scenegraph.softwarecontext.renderable") QT_BEGIN_NAMESPACE diff --git a/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp b/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp index df4ec592c3..b078277ad4 100644 --- a/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp +++ b/src/quick/scenegraph/adaptations/software/qsgsoftwarerenderer.cpp @@ -12,7 +12,7 @@ #include <QtGui/QBackingStore> #include <QElapsedTimer> -Q_LOGGING_CATEGORY(lcRenderer, "qt.scenegraph.softwarecontext.renderer") +Q_STATIC_LOGGING_CATEGORY(lcRenderer, "qt.scenegraph.softwarecontext.renderer") QT_BEGIN_NAMESPACE diff --git a/src/quick/util/qquickstyledtext.cpp b/src/quick/util/qquickstyledtext.cpp index a595dbcbc2..bc7c38e869 100644 --- a/src/quick/util/qquickstyledtext.cpp +++ b/src/quick/util/qquickstyledtext.cpp @@ -11,7 +11,7 @@ #include <QQmlContext> #include <QtGui/private/qtexthtmlparser_p.h> -Q_LOGGING_CATEGORY(lcStyledText, "qt.quick.styledtext") +Q_STATIC_LOGGING_CATEGORY(lcStyledText, "qt.quick.styledtext") /* QQuickStyledText supports few tags: diff --git a/src/quick/util/qquicktimeline.cpp b/src/quick/util/qquicktimeline.cpp index a47e5ba5ff..d79d835900 100644 --- a/src/quick/util/qquicktimeline.cpp +++ b/src/quick/util/qquicktimeline.cpp @@ -18,7 +18,7 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcTl, "qt.quick.timeline") +Q_STATIC_LOGGING_CATEGORY(lcTl, "qt.quick.timeline") struct Update { Update(QQuickTimeLineValue *_g, qreal _v) diff --git a/src/quickcontrols/qquickattachedpropertypropagator.cpp b/src/quickcontrols/qquickattachedpropertypropagator.cpp index cf752a4248..e481fafabe 100644 --- a/src/quickcontrols/qquickattachedpropertypropagator.cpp +++ b/src/quickcontrols/qquickattachedpropertypropagator.cpp @@ -12,7 +12,7 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcAttached, "qt.quick.controls.attachedpropertypropagator") +Q_STATIC_LOGGING_CATEGORY(lcAttached, "qt.quick.controls.attachedpropertypropagator") /*! \class QQuickAttachedPropertyPropagator diff --git a/src/quickcontrols/qquickstyle.cpp b/src/quickcontrols/qquickstyle.cpp index 5b715a6533..7ac62244ce 100644 --- a/src/quickcontrols/qquickstyle.cpp +++ b/src/quickcontrols/qquickstyle.cpp @@ -27,7 +27,7 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcQtQuickControlsStyle, "qt.quick.controls.style") +Q_STATIC_LOGGING_CATEGORY(lcQtQuickControlsStyle, "qt.quick.controls.style") /*! \class QQuickStyle diff --git a/src/quickcontrols/qquickstyleplugin.cpp b/src/quickcontrols/qquickstyleplugin.cpp index caae034970..a3afca2336 100644 --- a/src/quickcontrols/qquickstyleplugin.cpp +++ b/src/quickcontrols/qquickstyleplugin.cpp @@ -16,7 +16,7 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcStylePlugin, "qt.quick.controls.styleplugin") +Q_STATIC_LOGGING_CATEGORY(lcStylePlugin, "qt.quick.controls.styleplugin") QQuickStylePlugin::QQuickStylePlugin(QObject *parent) : QQmlExtensionPlugin(parent) diff --git a/src/quickcontrolsimpl/qquickimageselector.cpp b/src/quickcontrolsimpl/qquickimageselector.cpp index 35f6555684..3896c1cf3c 100644 --- a/src/quickcontrolsimpl/qquickimageselector.cpp +++ b/src/quickcontrolsimpl/qquickimageselector.cpp @@ -14,7 +14,7 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcQtQuickControlsImageSelector, "qt.quick.controls.imageselector") +Q_STATIC_LOGGING_CATEGORY(lcQtQuickControlsImageSelector, "qt.quick.controls.imageselector") static const int DEFAULT_CACHE = 500; diff --git a/src/quickcontrolsimpl/qquicktumblerview.cpp b/src/quickcontrolsimpl/qquicktumblerview.cpp index 785791d117..021801bf23 100644 --- a/src/quickcontrolsimpl/qquicktumblerview.cpp +++ b/src/quickcontrolsimpl/qquicktumblerview.cpp @@ -13,7 +13,7 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcTumblerView, "qt.quick.controls.tumblerview") +Q_STATIC_LOGGING_CATEGORY(lcTumblerView, "qt.quick.controls.tumblerview") QQuickTumblerView::QQuickTumblerView(QQuickItem *parent) : QQuickItem(parent) diff --git a/src/quickdialogs/quickdialogsquickimpl/qquickfiledialogimpl.cpp b/src/quickdialogs/quickdialogsquickimpl/qquickfiledialogimpl.cpp index 687e899d18..57d81c30a7 100644 --- a/src/quickdialogs/quickdialogsquickimpl/qquickfiledialogimpl.cpp +++ b/src/quickdialogs/quickdialogsquickimpl/qquickfiledialogimpl.cpp @@ -20,13 +20,13 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcCurrentFolder, "qt.quick.dialogs.quickfiledialogimpl.currentFolder") -Q_LOGGING_CATEGORY(lcSelectedFile, "qt.quick.dialogs.quickfiledialogimpl.selectedFile") -Q_LOGGING_CATEGORY(lcUpdateSelectedFile, "qt.quick.dialogs.quickfiledialogimpl.updateSelectedFile") -Q_LOGGING_CATEGORY(lcOptions, "qt.quick.dialogs.quickfiledialogimpl.options") -Q_LOGGING_CATEGORY(lcNameFilters, "qt.quick.dialogs.quickfiledialogimpl.namefilters") -Q_LOGGING_CATEGORY(lcAttachedNameFilters, "qt.quick.dialogs.quickfiledialogimplattached.namefilters") -Q_LOGGING_CATEGORY(lcAttachedCurrentIndex, "qt.quick.dialogs.quickfiledialogimplattached.currentIndex") +Q_STATIC_LOGGING_CATEGORY(lcCurrentFolder, "qt.quick.dialogs.quickfiledialogimpl.currentFolder") +Q_STATIC_LOGGING_CATEGORY(lcSelectedFile, "qt.quick.dialogs.quickfiledialogimpl.selectedFile") +Q_STATIC_LOGGING_CATEGORY(lcUpdateSelectedFile, "qt.quick.dialogs.quickfiledialogimpl.updateSelectedFile") +Q_STATIC_LOGGING_CATEGORY(lcOptions, "qt.quick.dialogs.quickfiledialogimpl.options") +Q_STATIC_LOGGING_CATEGORY(lcNameFilters, "qt.quick.dialogs.quickfiledialogimpl.namefilters") +Q_STATIC_LOGGING_CATEGORY(lcAttachedNameFilters, "qt.quick.dialogs.quickfiledialogimplattached.namefilters") +Q_STATIC_LOGGING_CATEGORY(lcAttachedCurrentIndex, "qt.quick.dialogs.quickfiledialogimplattached.currentIndex") QQuickFileDialogImplPrivate::QQuickFileDialogImplPrivate() { diff --git a/src/quickdialogs/quickdialogsquickimpl/qquickfolderbreadcrumbbar.cpp b/src/quickdialogs/quickdialogsquickimpl/qquickfolderbreadcrumbbar.cpp index baa75b714c..fdb547134b 100644 --- a/src/quickdialogs/quickdialogsquickimpl/qquickfolderbreadcrumbbar.cpp +++ b/src/quickdialogs/quickdialogsquickimpl/qquickfolderbreadcrumbbar.cpp @@ -23,12 +23,12 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcFolderBreadcrumbBar, "qt.quick.dialogs.folderbreadcrumbbar") -Q_LOGGING_CATEGORY(lcContentSize, "qt.quick.dialogs.folderbreadcrumbbar.contentsize") -Q_LOGGING_CATEGORY(lcDelegates, "qt.quick.dialogs.folderbreadcrumbbar.delegates") -Q_LOGGING_CATEGORY(lcShortcuts, "qt.quick.dialogs.folderbreadcrumbbar.shortcuts") -Q_LOGGING_CATEGORY(lcTextInput, "qt.quick.dialogs.folderbreadcrumbbar.textinput") -Q_LOGGING_CATEGORY(lcCurrentItem, "qt.quick.dialogs.folderbreadcrumbbar.currentitem") +Q_STATIC_LOGGING_CATEGORY(lcFolderBreadcrumbBar, "qt.quick.dialogs.folderbreadcrumbbar") +Q_STATIC_LOGGING_CATEGORY(lcContentSize, "qt.quick.dialogs.folderbreadcrumbbar.contentsize") +Q_STATIC_LOGGING_CATEGORY(lcDelegates, "qt.quick.dialogs.folderbreadcrumbbar.delegates") +Q_STATIC_LOGGING_CATEGORY(lcShortcuts, "qt.quick.dialogs.folderbreadcrumbbar.shortcuts") +Q_STATIC_LOGGING_CATEGORY(lcTextInput, "qt.quick.dialogs.folderbreadcrumbbar.textinput") +Q_STATIC_LOGGING_CATEGORY(lcCurrentItem, "qt.quick.dialogs.folderbreadcrumbbar.currentitem") QQuickItem *QQuickFolderBreadcrumbBarPrivate::createDelegateItem(QQmlComponent *component, const QVariantMap &initialProperties) { diff --git a/src/quickdialogs/quickdialogsquickimpl/qquickfolderdialogimpl.cpp b/src/quickdialogs/quickdialogsquickimpl/qquickfolderdialogimpl.cpp index 25d82a17aa..6b0afb4e58 100644 --- a/src/quickdialogs/quickdialogsquickimpl/qquickfolderdialogimpl.cpp +++ b/src/quickdialogs/quickdialogsquickimpl/qquickfolderdialogimpl.cpp @@ -12,9 +12,9 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcFolderDialogCurrentFolder, "qt.quick.dialogs.quickfolderdialogimpl.currentFolder") -Q_LOGGING_CATEGORY(lcFolderDialogSelectedFolder, "qt.quick.dialogs.quickfolderdialogimpl.selectedFolder") -Q_LOGGING_CATEGORY(lcFolderDialogOptions, "qt.quick.dialogs.quickfolderdialogimpl.options") +Q_STATIC_LOGGING_CATEGORY(lcFolderDialogCurrentFolder, "qt.quick.dialogs.quickfolderdialogimpl.currentFolder") +Q_STATIC_LOGGING_CATEGORY(lcFolderDialogSelectedFolder, "qt.quick.dialogs.quickfolderdialogimpl.selectedFolder") +Q_STATIC_LOGGING_CATEGORY(lcFolderDialogOptions, "qt.quick.dialogs.quickfolderdialogimpl.options") QQuickFolderDialogImplPrivate::QQuickFolderDialogImplPrivate() { diff --git a/src/quickdialogs/quickdialogsquickimpl/qquickfontdialogimpl.cpp b/src/quickdialogs/quickdialogsquickimpl/qquickfontdialogimpl.cpp index 5dcde5a81e..e83913a738 100644 --- a/src/quickdialogs/quickdialogsquickimpl/qquickfontdialogimpl.cpp +++ b/src/quickdialogs/quickdialogsquickimpl/qquickfontdialogimpl.cpp @@ -11,7 +11,7 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcAttachedProperty, "qt.quick.dialogs.quickfontdialogimpl.attachedOrWarn") +Q_STATIC_LOGGING_CATEGORY(lcAttachedProperty, "qt.quick.dialogs.quickfontdialogimpl.attachedOrWarn") QQuickFontDialogImplPrivate::QQuickFontDialogImplPrivate() { diff --git a/src/quickdialogs/quickdialogsquickimpl/qquickplatformcolordialog.cpp b/src/quickdialogs/quickdialogsquickimpl/qquickplatformcolordialog.cpp index 205b4e0b1b..1bc5018946 100644 --- a/src/quickdialogs/quickdialogsquickimpl/qquickplatformcolordialog.cpp +++ b/src/quickdialogs/quickdialogsquickimpl/qquickplatformcolordialog.cpp @@ -16,7 +16,7 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcQuickPlatformColorDialog, "qt.quick.dialogs.quickplatformcolordialog") +Q_STATIC_LOGGING_CATEGORY(lcQuickPlatformColorDialog, "qt.quick.dialogs.quickplatformcolordialog") QQuickPlatformColorDialog::QQuickPlatformColorDialog(QObject *parent) { diff --git a/src/quickdialogs/quickdialogsquickimpl/qquickplatformfiledialog.cpp b/src/quickdialogs/quickdialogsquickimpl/qquickplatformfiledialog.cpp index 1c9174a8e4..6f04afca54 100644 --- a/src/quickdialogs/quickdialogsquickimpl/qquickplatformfiledialog.cpp +++ b/src/quickdialogs/quickdialogsquickimpl/qquickplatformfiledialog.cpp @@ -17,7 +17,7 @@ QT_BEGIN_NAMESPACE -Q_LOGGING_CATEGORY(lcQuickPlatformFileDialog, "qt.quick.dialogs.quickplatformfiledialog") +Q_STATIC_LOGGING_CATEGORY(lcQuickPlatformFileDialog, "qt.quick.dialogs.quickplatformfiledialog") /*! \class QQuickPlatformFileDialog |