ADS: Use only one logging category

Change-Id: I0366338d5605fea7b4b096605577e90dfa79c389
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Friedemann Kleint
2023-02-22 14:29:18 +01:00
parent e25bf6e59d
commit ebb3b90dce
11 changed files with 19 additions and 19 deletions

View File

@@ -0,0 +1,8 @@
// Copyright (C) 2023
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-2.1-or-later OR GPL-3.0-or-later
#pragma once
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(adsLog)

View File

@@ -2,6 +2,7 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-2.1-or-later OR GPL-3.0-or-later // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-2.1-or-later OR GPL-3.0-or-later
#include "dockareatabbar.h" #include "dockareatabbar.h"
#include "ads_globals_p.h"
#include "dockareawidget.h" #include "dockareawidget.h"
#include "dockwidget.h" #include "dockwidget.h"
@@ -16,8 +17,6 @@
#include <iostream> #include <iostream>
static Q_LOGGING_CATEGORY(adsLog, "qtc.qmldesigner.advanceddockingsystem", QtWarningMsg)
namespace ADS namespace ADS
{ {
/** /**

View File

@@ -4,6 +4,7 @@
#include "dockareatitlebar.h" #include "dockareatitlebar.h"
#include "ads_globals.h" #include "ads_globals.h"
#include "ads_globals_p.h"
#include "advanceddockingsystemtr.h" #include "advanceddockingsystemtr.h"
#include "dockareatabbar.h" #include "dockareatabbar.h"
#include "dockareawidget.h" #include "dockareawidget.h"
@@ -26,8 +27,6 @@
#include <iostream> #include <iostream>
static Q_LOGGING_CATEGORY(adsLog, "qtc.qmldesigner.advanceddockingsystem", QtWarningMsg)
namespace ADS namespace ADS
{ {
/** /**

View File

@@ -3,6 +3,7 @@
#include "dockareawidget.h" #include "dockareawidget.h"
#include "ads_globals_p.h"
#include "dockareatabbar.h" #include "dockareatabbar.h"
#include "dockareatitlebar.h" #include "dockareatitlebar.h"
#include "dockcomponentsfactory.h" #include "dockcomponentsfactory.h"
@@ -29,8 +30,6 @@
#include <iostream> #include <iostream>
static Q_LOGGING_CATEGORY(adsLog, "qtc.qmldesigner.advanceddockingsystem", QtWarningMsg)
namespace ADS namespace ADS
{ {
static const char *const INDEX_PROPERTY = "index"; static const char *const INDEX_PROPERTY = "index";

View File

@@ -4,6 +4,7 @@
#include "dockcontainerwidget.h" #include "dockcontainerwidget.h"
#include "ads_globals.h" #include "ads_globals.h"
#include "ads_globals_p.h"
#include "dockareawidget.h" #include "dockareawidget.h"
#include "dockingstatereader.h" #include "dockingstatereader.h"
#include "dockmanager.h" #include "dockmanager.h"
@@ -25,8 +26,6 @@
#include <functional> #include <functional>
#include <iostream> #include <iostream>
static Q_LOGGING_CATEGORY(adsLog, "qtc.qmldesigner.advanceddockingsystem", QtWarningMsg)
namespace ADS namespace ADS
{ {
static unsigned int zOrderCounter = 0; static unsigned int zOrderCounter = 0;

View File

@@ -4,6 +4,7 @@
#include "dockmanager.h" #include "dockmanager.h"
#include "ads_globals.h" #include "ads_globals.h"
#include "ads_globals_p.h"
#include "dockareawidget.h" #include "dockareawidget.h"
#include "dockfocuscontroller.h" #include "dockfocuscontroller.h"
#include "dockingstatereader.h" #include "dockingstatereader.h"
@@ -38,7 +39,7 @@
#include <QVariant> #include <QVariant>
#include <QXmlStreamWriter> #include <QXmlStreamWriter>
static Q_LOGGING_CATEGORY(adsLog, "qtc.qmldesigner.advanceddockingsystem", QtWarningMsg); Q_LOGGING_CATEGORY(adsLog, "qtc.qmldesigner.advanceddockingsystem", QtWarningMsg);
using namespace Utils; using namespace Utils;

View File

@@ -3,14 +3,13 @@
#include "docksplitter.h" #include "docksplitter.h"
#include "ads_globals_p.h"
#include "dockareawidget.h" #include "dockareawidget.h"
#include <QChildEvent> #include <QChildEvent>
#include <QLoggingCategory> #include <QLoggingCategory>
#include <QVariant> #include <QVariant>
static Q_LOGGING_CATEGORY(adsLog, "qtc.qmldesigner.advanceddockingsystem", QtWarningMsg)
namespace ADS namespace ADS
{ {
/** /**

View File

@@ -4,6 +4,7 @@
#include "dockwidget.h" #include "dockwidget.h"
#include "ads_globals.h" #include "ads_globals.h"
#include "ads_globals_p.h"
#include "dockareawidget.h" #include "dockareawidget.h"
#include "dockcomponentsfactory.h" #include "dockcomponentsfactory.h"
#include "dockcontainerwidget.h" #include "dockcontainerwidget.h"
@@ -25,8 +26,6 @@
#include <QXmlStreamWriter> #include <QXmlStreamWriter>
#include <QWindow> #include <QWindow>
static Q_LOGGING_CATEGORY(adsLog, "qtc.qmldesigner.advanceddockingsystem", QtWarningMsg)
namespace ADS namespace ADS
{ {
/** /**

View File

@@ -4,6 +4,7 @@
#include "dockwidgettab.h" #include "dockwidgettab.h"
#include "ads_globals.h" #include "ads_globals.h"
#include "ads_globals_p.h"
#include "advanceddockingsystemtr.h" #include "advanceddockingsystemtr.h"
#include "dockareawidget.h" #include "dockareawidget.h"
#include "dockmanager.h" #include "dockmanager.h"
@@ -32,8 +33,6 @@
#include <iostream> #include <iostream>
static Q_LOGGING_CATEGORY(adsLog, "qtc.qmldesigner.advanceddockingsystem", QtWarningMsg)
namespace ADS namespace ADS
{ {
using TabLabelType = ElidingLabel; using TabLabelType = ElidingLabel;

View File

@@ -2,6 +2,7 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-2.1-or-later OR GPL-3.0-or-later // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-2.1-or-later OR GPL-3.0-or-later
#include "floatingdockcontainer.h" #include "floatingdockcontainer.h"
#include "ads_globals_p.h"
#include "dockareawidget.h" #include "dockareawidget.h"
#include "dockcontainerwidget.h" #include "dockcontainerwidget.h"
@@ -29,8 +30,6 @@
#include <QMouseEvent> #include <QMouseEvent>
#include <QPointer> #include <QPointer>
static Q_LOGGING_CATEGORY(adsLog, "qtc.qmldesigner.advanceddockingsystem", QtWarningMsg)
namespace ADS namespace ADS
{ {
#ifdef Q_OS_WIN #ifdef Q_OS_WIN

View File

@@ -2,6 +2,7 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-2.1-or-later OR GPL-3.0-or-later // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-2.1-or-later OR GPL-3.0-or-later
#include "floatingdragpreview.h" #include "floatingdragpreview.h"
#include "ads_globals_p.h"
#include "dockareawidget.h" #include "dockareawidget.h"
#include "dockcontainerwidget.h" #include "dockcontainerwidget.h"
@@ -19,8 +20,6 @@
#include <iostream> #include <iostream>
static Q_LOGGING_CATEGORY(adsLog, "qtc.qmldesigner.advanceddockingsystem", QtWarningMsg)
namespace ADS namespace ADS
{ {
/** /**