diff options
author | Kaloyan Chehlarski <kaloyan.chehlarski@qt.io> | 2024-06-27 13:16:23 +0200 |
---|---|---|
committer | Kaloyan Chehlarski <kaloyan.chehlarski@qt.io> | 2024-07-02 14:04:30 +0000 |
commit | bd6e209152d042a08fc226a9e92ee1c04cf1954a (patch) | |
tree | 433914a0c9a8c1030a1550e9fae49c87380abdfd /examples/pdfwidgets | |
parent | 841aa01aaf83c63ffd83bafe7509c17b6d36d467 (diff) |
Use static logging categories everywhere
Following fa4bd30caa079a3b1e5eac1bb4f17365f456b8f9
all usage of the Q_LOGGING_CATEGORY macro triggers a deprecation
warning, and may even block certain build configurations. This change
replaces all usages of the macro with Q_STATIC_LOGGING_CATEGORY instead,
since none of the logging categories in WebEngine are meant to
be exported to users.
Change-Id: Icdebb7a3a8c987db3f34945cd0311aee52667a88
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'examples/pdfwidgets')
-rw-r--r-- | examples/pdfwidgets/pdfviewer/mainwindow.cpp | 2 | ||||
-rw-r--r-- | examples/pdfwidgets/pdfviewer/mainwindow.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/examples/pdfwidgets/pdfviewer/mainwindow.cpp b/examples/pdfwidgets/pdfviewer/mainwindow.cpp index ce19359fc..8525a360e 100644 --- a/examples/pdfwidgets/pdfviewer/mainwindow.cpp +++ b/examples/pdfwidgets/pdfviewer/mainwindow.cpp @@ -21,7 +21,7 @@ const qreal zoomMultiplier = qSqrt(2.0); -Q_LOGGING_CATEGORY(lcExample, "qt.examples.pdfviewer") +Q_STATIC_LOGGING_CATEGORY(lcExample, "qt.examples.pdfviewer") MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) diff --git a/examples/pdfwidgets/pdfviewer/mainwindow.h b/examples/pdfwidgets/pdfviewer/mainwindow.h index 7f5a5dbca..009e3c1e0 100644 --- a/examples/pdfwidgets/pdfviewer/mainwindow.h +++ b/examples/pdfwidgets/pdfviewer/mainwindow.h @@ -7,8 +7,6 @@ #include <QLoggingCategory> #include <QMainWindow> -Q_DECLARE_LOGGING_CATEGORY(lcExample) - QT_BEGIN_NAMESPACE namespace Ui { class MainWindow; |