diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-03-24 09:41:55 (GMT) |
---|---|---|
committer | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-03-24 09:41:55 (GMT) |
commit | 359c59db1a21d4279ca254a77eb1ac5c6a6c1ff9 (patch) | |
tree | cffdc1ccec703ac8344ad2cc7478f07cf6e68bcc /src/corelib | |
parent | 9a42d9815b73e5ceb25360af02936bcb0454a965 (diff) | |
download | Qt-359c59db1a21d4279ca254a77eb1ac5c6a6c1ff9.zip Qt-359c59db1a21d4279ca254a77eb1ac5c6a6c1ff9.tar.gz Qt-359c59db1a21d4279ca254a77eb1ac5c6a6c1ff9.tar.bz2 |
Call FixNativeOrientation on Symbian for certain fullscreen qml views.
For fullscreen QDeclarativeViews that lock their orientation to the
native orientation of the device an additional performance gain can
be achieved by calling FixNativeOrientation on the underlying RWindow.
Such apps will either work in a single orientation only, or they will
handle rotation themselves, by using QPainter transformations and
opting out from the standard Avkon auto-rotation. In any of these cases
there is no need for the lower level layers of the system to handle
graphics surface rotation, the app is "fixed" to the native orientation
from their point of view, therefore it is safe to call
FixNativeOrientation().
Task-number: QTBUG-17742
Reviewed-by: Jason Barron
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/global/qglobal.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index e85bbfc..69fe958 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -2459,6 +2459,10 @@ QT3_SUPPORT Q_CORE_EXPORT const char *qInstallPathSysconf(); #define Q_SYMBIAN_SUPPORTS_MULTIPLE_SCREENS #endif +#ifdef SYMBIAN_GRAPHICS_FIXNATIVEORIENTATION +#define Q_SYMBIAN_SUPPORTS_FIXNATIVEORIENTATION +#endif + //Symbian does not support data imports from a DLL #define Q_NO_DATA_RELOCATION |