Changeset View
Changeset View
Standalone View
Standalone View
ksplash/ksplashqml/splashwindow.h
Show All 31 Lines | |||||
32 | { | 32 | { | ||
33 | class PlasmaShellSurface; | 33 | class PlasmaShellSurface; | ||
34 | } | 34 | } | ||
35 | } | 35 | } | ||
36 | 36 | | |||
37 | class SplashWindow: public KQuickAddons::QuickViewSharedEngine | 37 | class SplashWindow: public KQuickAddons::QuickViewSharedEngine | ||
38 | { | 38 | { | ||
39 | public: | 39 | public: | ||
40 | SplashWindow(bool testing = false, bool window = false); | 40 | SplashWindow(bool testing, bool window, const QString &theme); | ||
41 | 41 | | |||
42 | void setStage(int stage); | 42 | void setStage(int stage); | ||
43 | virtual void setGeometry(const QRect &rect); | 43 | virtual void setGeometry(const QRect &rect); | ||
44 | 44 | | |||
45 | protected: | 45 | protected: | ||
46 | bool event(QEvent *e) override; | 46 | bool event(QEvent *e) override; | ||
47 | void keyPressEvent(QKeyEvent *event) override; | 47 | void keyPressEvent(QKeyEvent *event) override; | ||
48 | void mousePressEvent(QMouseEvent *event) override; | 48 | void mousePressEvent(QMouseEvent *event) override; | ||
49 | 49 | | |||
50 | private: | 50 | private: | ||
51 | void setupWaylandIntegration(); | 51 | void setupWaylandIntegration(); | ||
52 | int m_stage; | 52 | int m_stage; | ||
53 | bool m_testing; | 53 | const bool m_testing; | ||
54 | bool m_window; | 54 | const bool m_window; | ||
55 | const QString m_theme; | ||||
55 | KWayland::Client::PlasmaShellSurface *m_shellSurface = nullptr; | 56 | KWayland::Client::PlasmaShellSurface *m_shellSurface = nullptr; | ||
56 | }; | 57 | }; | ||
57 | 58 | | |||
58 | #endif // SPLASH_WINDOW_H_ | 59 | #endif // SPLASH_WINDOW_H_ |