17 #ifndef ORIENTATIONLOCK_H
18 #define ORIENTATIONLOCK_H
21 #include <QtCore/QObject>
33 Q_PROPERTY(
bool enabled READ enabled NOTIFY enabledChanged)
34 Q_PROPERTY(Qt::ScreenOrientation savedOrientation READ savedOrientation WRITE setSavedOrientation
35 NOTIFY savedOrientationChanged)
42 Qt::ScreenOrientation savedOrientation()
const;
43 void setSavedOrientation(
const Qt::ScreenOrientation orientation);
46 void enabledChanged();
47 void savedOrientationChanged();
50 static void onEnabledChangedProxy(GSettings *settings,
const gchar *key, gpointer data);
51 void onEnabledChanged();
54 GSettings *m_systemSettings;
57 Qt::ScreenOrientation m_savedOrientation;
60 #endif // ORIENTATIONLOCK_H
The OrientationLock class exports orientation lock related properties to QML It has two properties: ...