Changeset View
Changeset View
Standalone View
Standalone View
src/platformtheme/kwaylandintegration.h
Show All 16 Lines | |||||
17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
18 | * Boston, MA 02110-1301, USA. | 18 | * Boston, MA 02110-1301, USA. | ||
19 | */ | 19 | */ | ||
20 | #ifndef KWAYLANDINTEGRATION_H | 20 | #ifndef KWAYLANDINTEGRATION_H | ||
21 | #define KWAYLANDINTEGRATION_H | 21 | #define KWAYLANDINTEGRATION_H | ||
22 | 22 | | |||
23 | #include <QObject> | 23 | #include <QObject> | ||
24 | 24 | | |||
25 | class QWindow; | ||||
26 | | ||||
25 | namespace KWayland | 27 | namespace KWayland | ||
26 | { | 28 | { | ||
27 | namespace Client | 29 | namespace Client | ||
28 | { | 30 | { | ||
29 | class ServerSideDecorationManager; | 31 | class ServerSideDecorationManager; | ||
30 | } | 32 | } | ||
31 | } | 33 | } | ||
32 | 34 | | |||
33 | class KWaylandIntegration : public QObject | 35 | class KWaylandIntegration : public QObject | ||
34 | { | 36 | { | ||
35 | Q_OBJECT | 37 | Q_OBJECT | ||
36 | public: | 38 | public: | ||
37 | explicit KWaylandIntegration(); | 39 | explicit KWaylandIntegration(); | ||
38 | virtual ~KWaylandIntegration(); | 40 | virtual ~KWaylandIntegration(); | ||
39 | void init(); | 41 | void init(); | ||
40 | 42 | | |||
41 | bool eventFilter(QObject *watched, QEvent *event) Q_DECL_OVERRIDE; | 43 | bool eventFilter(QObject *watched, QEvent *event) Q_DECL_OVERRIDE; | ||
42 | 44 | | |||
43 | private: | 45 | private: | ||
46 | void installColorScheme(QWindow *w); | ||||
44 | KWayland::Client::ServerSideDecorationManager *m_decoration; | 47 | KWayland::Client::ServerSideDecorationManager *m_decoration; | ||
45 | }; | 48 | }; | ||
46 | 49 | | |||
47 | #endif | 50 | #endif |