diff options
author | mread <qt-info@nokia.com> | 2011-01-25 14:29:41 (GMT) |
---|---|---|
committer | mread <qt-info@nokia.com> | 2011-01-27 17:26:33 (GMT) |
commit | e0489b905d6a31c7a904ca2b62a1e60cd12dba4f (patch) | |
tree | 6529b0c300ac36301c23b31648adb940aae15a11 /src/corelib | |
parent | 4ec245a3e75470186557d00b2383af3872a720b0 (diff) | |
download | Qt-e0489b905d6a31c7a904ca2b62a1e60cd12dba4f.zip Qt-e0489b905d6a31c7a904ca2b62a1e60cd12dba4f.tar.gz Qt-e0489b905d6a31c7a904ca2b62a1e60cd12dba4f.tar.bz2 |
Orientation control implementation for Symbian
This used the orientation control QWidget attributes API from
maemo5, and provides a simple implementation for Symbian.
The essense of the implementation is that the latest setting
of one of these QWidget orientation attributes will set the
orientation for the whole app. Testing the attributes will return
only the last attribute set, it will not return the app orientation
state.
A new task, QTBUG-16972, has been created to provide a more
comprehensive implementation in the future. This may provide a more
effective emulation of the maemo5 behaviour, or may incorporate
further reaching concepts for QML rotations.
Task-number: QTBUG-11785
Reviewed-by: Shane Kearns
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/global/qnamespace.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/corelib/global/qnamespace.h b/src/corelib/global/qnamespace.h index 4f3a742..e492345 100644 --- a/src/corelib/global/qnamespace.h +++ b/src/corelib/global/qnamespace.h @@ -511,9 +511,16 @@ public: #if 0 // these values are reserved for Maemo5 - do not re-use them WA_Maemo5NonComposited = 126, WA_Maemo5StackedWindow = 127, - WA_Maemo5PortraitOrientation = 128, - WA_Maemo5LandscapeOrientation = 129, - WA_Maemo5AutoOrientation = 130, +#endif + + WA_LockPortraitOrientation = 128, + WA_LockLandscapeOrientation = 129, + WA_AutoOrientation = 130, + +#if 0 // these values are reserved for Maemo5 - do not re-use them + WA_Maemo5PortraitOrientation = WA_LockPortraitOrientation, + WA_Maemo5LandscapeOrientation = WA_LockLandscapeOrientation, + WA_Maemo5AutoOrientation = WA_AutoOrientation, WA_Maemo5ShowProgressIndicator = 131, #endif |