summaryrefslogtreecommitdiffstats
path: root/src/corelib
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib')
-rw-r--r--src/corelib/global/qnamespace.h8
-rw-r--r--src/corelib/global/qnamespace.qdoc13
2 files changed, 21 insertions, 0 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h
index 807bed8a61..4c1cff8eee 100644
--- a/src/corelib/global/qnamespace.h
+++ b/src/corelib/global/qnamespace.h
@@ -283,6 +283,14 @@ public:
Q_DECLARE_FLAGS(WindowStates, WindowState)
+ enum ScreenOrientation {
+ UnknownOrientation,
+ LandscapeOrientation,
+ PortraitOrientation,
+ InvertedLandscapeOrientation,
+ InvertedPortraitOrientation
+ };
+
enum WidgetAttribute {
WA_Disabled = 0,
WA_UnderMouse = 1,
diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc
index 08df79af28..5df88898cf 100644
--- a/src/corelib/global/qnamespace.qdoc
+++ b/src/corelib/global/qnamespace.qdoc
@@ -1826,6 +1826,19 @@
*/
/*!
+ \enum Qt::ScreenOrientation
+
+ 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 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.
+ \value InvertedLandscapeOrientation Inverted landscape orientation, rotated 180 degrees relative to landscape.
+ \value InvertedPortraitOrientation Inverted portrait orientation, rotated 180 degrees relative to portrait.
+*/
+
+/*!
\enum Qt::ContextMenuPolicy
This enum type defines the various policies a widget can have with