Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[orientation] Enable rotation handling #30

Merged
merged 2 commits into from Nov 19, 2013
Merged

[orientation] Enable rotation handling #30

merged 2 commits into from Nov 19, 2013

Conversation

bzeller
Copy link

@bzeller bzeller commented Oct 16, 2013

Ignore creator user file

QScreen* sc = app.primaryScreen();
if(sc){
sc->setOrientationUpdateMask(Qt::PrimaryOrientation
| Qt::LandscapeOrientation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Space before { and indent ^_^

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doh! can't belive i missed the space again!

Ignore creator user file

Fix style issues

Fix NotificationPreview Rotation
}

MouseArea {
id: notificationArea
property bool isPortrait: (orientationAngleContextProperty.value == 90 || orientationAngleContextProperty.value == 270)
property bool isPortrait: (orientationAngle == 90 || orientationAngle == 270)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't this only true on devices where landscape is the default fb orientation?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to think of a mechanism to handle any device regardless of its default orientation.
I vote for let's pull the trigger this time and have nice lipstick rotations on N9, because this change is not what @bzeller introduced (see the deleted line).
When we jump aboard another device with differing default orientation, will solve then

@bzeller
Copy link
Author

bzeller commented Oct 17, 2013

This is exactly how it works for me when i tested it on the phone. Messages are on the right place and right direction. In the original code messages where upside down in portrait mode.

@locusf
Copy link
Member

locusf commented Oct 17, 2013

LGTM, works ok on N9

@faenil
Copy link
Member

faenil commented Nov 19, 2013

so, we agreed to let this in, we'll eventually look at it when we'll work on the new Glacier homescreen in case we decide to reuse the code :)

@sledges
Copy link
Contributor

sledges commented Nov 19, 2013

We won't look into notifications, because they will be scrapped.
Device default orientation needs master plan, and best to come up with plan when we have device to test it with

sledges added a commit that referenced this pull request Nov 19, 2013
[orientation] Enable rotation handling
@sledges sledges merged commit 956ec93 into nemomobile:qt5 Nov 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants