Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/screens_xrandr.h
Show All 30 Lines | |||||
31 | { | 31 | { | ||
32 | Q_OBJECT | 32 | Q_OBJECT | ||
33 | public: | 33 | public: | ||
34 | XRandRScreens(X11StandalonePlatform *backend, QObject *parent = nullptr); | 34 | XRandRScreens(X11StandalonePlatform *backend, QObject *parent = nullptr); | ||
35 | ~XRandRScreens() override; | 35 | ~XRandRScreens() override; | ||
36 | void init() override; | 36 | void init() override; | ||
37 | 37 | | |||
38 | QSize displaySize() const override; | 38 | QSize displaySize() const override; | ||
39 | int rotation(int /*screen*/) const override { | ||||
40 | return 0; | ||||
41 | } | ||||
39 | 42 | | |||
40 | using QObject::event; | 43 | using QObject::event; | ||
41 | bool event(xcb_generic_event_t *event) override; | 44 | bool event(xcb_generic_event_t *event) override; | ||
42 | 45 | | |||
43 | private: | 46 | private: | ||
44 | void updateCount() override; | 47 | void updateCount() override; | ||
45 | 48 | | |||
46 | X11StandalonePlatform *m_backend; | 49 | X11StandalonePlatform *m_backend; | ||
47 | }; | 50 | }; | ||
48 | 51 | | |||
49 | } // namespace | 52 | } // namespace | ||
50 | 53 | | |||
51 | #endif | 54 | #endif |