Changeset View
Changeset View
Standalone View
Standalone View
orientation_sensor.h
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 38 | public: | |||
---|---|---|---|---|---|
56 | }; | 56 | }; | ||
57 | Q_ENUM(Orientation) | 57 | Q_ENUM(Orientation) | ||
58 | 58 | | |||
59 | Orientation orientation() const { | 59 | Orientation orientation() const { | ||
60 | return m_orientation; | 60 | return m_orientation; | ||
61 | } | 61 | } | ||
62 | 62 | | |||
63 | void setConfig(KSharedConfig::Ptr config) { | 63 | void setConfig(KSharedConfig::Ptr config) { | ||
64 | m_config = config; | 64 | m_config = std::move(config); | ||
65 | } | 65 | } | ||
66 | 66 | | |||
67 | bool isUserEnabled() const { | 67 | bool isUserEnabled() const { | ||
68 | return m_userEnabled; | 68 | return m_userEnabled; | ||
69 | } | 69 | } | ||
70 | void setUserEnabled(bool enabled); | 70 | void setUserEnabled(bool enabled); | ||
71 | 71 | | |||
72 | Q_SIGNALS: | 72 | Q_SIGNALS: | ||
Show All 19 Lines |