From a4cb0e7fd8ab50492bb56147d48839f9a9991140 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 24 Oct 2022 17:41:35 +0300 Subject: [PATCH] Forward declare QAction in src/input.h --- autotests/integration/globalshortcuts_test.cpp | 4 +++- autotests/integration/lockscreen.cpp | 2 ++ autotests/integration/no_global_shortcuts_test.cpp | 1 + autotests/integration/screenedges_test.cpp | 2 ++ autotests/integration/touch_input_test.cpp | 2 ++ src/input.cpp | 1 + src/input.h | 2 +- src/plugins/buttonrebinds/buttonrebindsfilter.h | 2 ++ 8 files changed, 14 insertions(+), 2 deletions(-) diff --git a/autotests/integration/globalshortcuts_test.cpp b/autotests/integration/globalshortcuts_test.cpp index 6c70320b31..fc400df1c8 100644 --- a/autotests/integration/globalshortcuts_test.cpp +++ b/autotests/integration/globalshortcuts_test.cpp @@ -23,8 +23,10 @@ #include #include -#include +#include + +#include #include #include diff --git a/autotests/integration/lockscreen.cpp b/autotests/integration/lockscreen.cpp index d03ebcc9ee..7b4a2be107 100644 --- a/autotests/integration/lockscreen.cpp +++ b/autotests/integration/lockscreen.cpp @@ -36,6 +36,8 @@ #include +#include + #include Q_DECLARE_METATYPE(Qt::Orientation) diff --git a/autotests/integration/no_global_shortcuts_test.cpp b/autotests/integration/no_global_shortcuts_test.cpp index 2d35f8a421..e3f36fa990 100644 --- a/autotests/integration/no_global_shortcuts_test.cpp +++ b/autotests/integration/no_global_shortcuts_test.cpp @@ -19,6 +19,7 @@ #include #include +#include #include #include diff --git a/autotests/integration/screenedges_test.cpp b/autotests/integration/screenedges_test.cpp index e3c7472040..a180dc79e0 100644 --- a/autotests/integration/screenedges_test.cpp +++ b/autotests/integration/screenedges_test.cpp @@ -22,6 +22,8 @@ #include #include +#include + Q_DECLARE_METATYPE(KWin::ElectricBorder) namespace KWin diff --git a/autotests/integration/touch_input_test.cpp b/autotests/integration/touch_input_test.cpp index 87b3c90ef2..834332f897 100644 --- a/autotests/integration/touch_input_test.cpp +++ b/autotests/integration/touch_input_test.cpp @@ -22,6 +22,8 @@ #include #include +#include + namespace KWin { diff --git a/src/input.cpp b/src/input.cpp index 973e276209..771a4164be 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -61,6 +61,7 @@ #include #endif // Qt +#include #include #include #include diff --git a/src/input.h b/src/input.h index 735eecb681..4aa68d6352 100644 --- a/src/input.h +++ b/src/input.h @@ -12,7 +12,6 @@ #define KWIN_INPUT_H #include -#include #include #include #include @@ -25,6 +24,7 @@ #include class KGlobalAccelInterface; +class QAction; class QKeySequence; class QMouseEvent; class QKeyEvent; diff --git a/src/plugins/buttonrebinds/buttonrebindsfilter.h b/src/plugins/buttonrebinds/buttonrebindsfilter.h index 5903ae491d..ba95735b18 100644 --- a/src/plugins/buttonrebinds/buttonrebindsfilter.h +++ b/src/plugins/buttonrebinds/buttonrebindsfilter.h @@ -11,6 +11,8 @@ #include "core/inputdevice.h" #include "input.h" +#include + class InputDevice : public KWin::InputDevice { QString sysName() const override;