View Single Post
Posts: 220 | Thanked: 1,260 times | Joined on Apr 2010 @ Poland
#1396
Originally Posted by marmistrz View Post
Forced rotation enabled.
How it can be checked:
1. install cssu-thumb, update hildon-desktop e.g. via apt-get upgrade, enable forced rotation
2. install powedit (deb needs to be downloaded due to hash sum mismatch)
3. edit /usr/share/applications/hildon/powedit.desktop - add X-CSSU-Force-Landscape=true to the end of the file
4. Launch PowEdit via menu

Expected output: when device rotation, the window shouldn't be rotated by hildon-desktop, it should stay in landscape, only internal Qt Components rotation should be used

Actual ouptut: Both hildon-desktop rotation and internal rotation is used
I've changed the following line in main.cpp file of your application:
Code:
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto);
to
Code:
viewer.setOrientation(QmlApplicationViewer::ScreenOrientationLockLandscape);
and it work's as expected.

For some reason ScreenOrientationAuto sets HILDON_PORTRAIT_SUPPORTED flag on app's window. With current portrait mode policy it means that the window won't be blacklisted.
__________________
Gnumeric - a spreadsheet application for N900
Camdrive transforms your N9 into a car black box
CSSU developer, join us!
 

The Following 4 Users Say Thank You to arcean For This Useful Post: