diff options
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qnamespace.h | 2 | ||||
-rw-r--r-- | src/corelib/global/qnamespace.qdoc | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index 521e426258..3107d50bd9 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -317,7 +317,7 @@ public: Q_DECLARE_FLAGS(WindowStates, WindowState) enum ScreenOrientation { - UnknownOrientation = 0x00000000, + PrimaryOrientation = 0x00000000, PortraitOrientation = 0x00000001, LandscapeOrientation = 0x00000002, InvertedPortraitOrientation = 0x00000004, diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc index 0e98aaa552..37be933393 100644 --- a/src/corelib/global/qnamespace.qdoc +++ b/src/corelib/global/qnamespace.qdoc @@ -1821,7 +1821,8 @@ This enum type specifies the various orientations a screen might have. - \value UnknownOrientation The orientation is unknown or the platform doesn't support orientations. + \value PrimaryOrientation The display's primary orientation. The QWindow and QScreen APIs never return this value, + instead it will be mapped to the corresponding QScreen's QScreen::primaryOrientation(). \value LandscapeOrientation Landscape orientation, display width is greater than display height. \value PortraitOrientation Portrait orientation, display height is greater than display width, rotated 90 degree clockwise relative to landscape. |