Avoid QtDBus module include in commonly used headers

Because all of QtCore and QtDBus is no longer pulled in, a few placed had to get explicit includes
This commit is contained in:
Alexander Lohnau 2023-10-22 07:09:07 +02:00
parent f9aa624d5b
commit 0d3b017b23
10 changed files with 23 additions and 5 deletions

View file

@ -46,7 +46,7 @@
#include <QFutureWatcher>
#include <QThread>
#include <QtConcurrent>
#include <QtConcurrentRun>
// system
#include <sys/socket.h>

View file

@ -420,7 +420,7 @@ public:
{
auto list = defaultValue("CalibrationMatrix", QList<float>{});
if (list.size() == 16) {
return QMatrix4x4{list.toVector().constData()};
return QMatrix4x4{list.constData()};
}
return m_defaultCalibrationMatrix;

View file

@ -30,6 +30,7 @@
#endif
// Qt
#include <QDBusConnection>
#include <QOpenGLContext>
namespace KWin

View file

@ -9,8 +9,9 @@
#pragma once
#include <QDBusContext>
#include <QDBusMessage>
#include <QObject>
#include <QtDBus>
#include "virtualdesktopsdbustypes.h"

View file

@ -16,6 +16,8 @@
#include <KConfigGroup>
#include <KLocalizedString>
#include <KPluginFactory>
#include <QDBusConnection>
#include <QDBusMessage>
K_PLUGIN_FACTORY_WITH_JSON(VirtualDesktopsFactory,
"kcm_kwin_virtualdesktops.json",

View file

@ -10,6 +10,8 @@
#include <QDBusConnection>
#include <QDBusMessage>
#include <QDBusPendingCallWatcher>
#include <QDBusPendingReply>
#include <KConfig>
#include <KLocalizedString>

View file

@ -11,9 +11,15 @@
#include "activities.h"
#endif
#include <QDBusConnection>
#include <QDBusMessage>
#include <QDBusMetaType>
#include <QDBusPendingCallWatcher>
#include <QDBusPendingReply>
#include <QFileInfo>
#include <QIcon>
#include <QQmlEngine>
#include <QtDBus>
#include <QTimer>
#include <KColorSchemeManager>
#include <KConfig>

View file

@ -13,6 +13,7 @@
#include <KConfigGroup>
#include <KPluginFactory>
#include <KPluginMetaData>
#include <QPluginLoader>
namespace KWin
{

View file

@ -9,7 +9,7 @@
#pragma once
#include <QtDBus>
#include <QDBusArgument>
namespace KWin
{

View file

@ -66,6 +66,11 @@
#include <KConfigGroup>
#include <KLocalizedString>
#include <KStartupInfo>
// Qt
#include <QCryptographicHash>
#include <QDBusConnection>
#include <QDBusPendingCall>
#include <QMetaProperty>
// xcb
#include <xcb/xinerama.h>