diff options
Diffstat (limited to 'src/gui/kernel/qplatformscreen_qpa.cpp')
-rw-r--r-- | src/gui/kernel/qplatformscreen_qpa.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformscreen_qpa.cpp b/src/gui/kernel/qplatformscreen_qpa.cpp index e40550a633..fdb5d32687 100644 --- a/src/gui/kernel/qplatformscreen_qpa.cpp +++ b/src/gui/kernel/qplatformscreen_qpa.cpp @@ -172,6 +172,18 @@ qreal QPlatformScreen::refreshRate() const } /*! + Reimplement this function in subclass to return the native orientation + of the screen, e.g. the orientation where the logo sticker of the device + appears the right way up. + + The default implementation returns Qt::PrimaryOrientation. +*/ +Qt::ScreenOrientation QPlatformScreen::nativeOrientation() const +{ + return Qt::PrimaryOrientation; +} + +/*! Reimplement this function in subclass to return the current orientation of the screen, for example based on accelerometer data to determine the device orientation. |