diff options
Diffstat (limited to 'src/gui/kernel/qscreen.cpp')
| -rw-r--r-- | src/gui/kernel/qscreen.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gui/kernel/qscreen.cpp b/src/gui/kernel/qscreen.cpp index 2168cdf43a..558eca6b1d 100644 --- a/src/gui/kernel/qscreen.cpp +++ b/src/gui/kernel/qscreen.cpp @@ -443,6 +443,23 @@ Qt::ScreenOrientation QScreen::primaryOrientation() const return d->primaryOrientation; } +/*! + \property QScreen::nativeOrientation + \brief the native screen orientation + \since 5.2 + + The native orientation of the screen is the orientation where the logo + sticker of the device appears the right way up, or Qt::PrimaryOrientation + if the platform does not support this functionality. + + The native orientation is a property of the hardware, and does not change. +*/ +Qt::ScreenOrientation QScreen::nativeOrientation() const +{ + Q_D(const QScreen); + return d->platformScreen->nativeOrientation(); +} + // i must be power of two static int log2(uint i) { |
