View Single Post
marxian's Avatar
Posts: 2,448 | Thanked: 9,523 times | Joined on Aug 2010 @ Wigan, UK
#592
Originally Posted by qwazix View Post
The feeling of slow rotation is augmented by the too many unneeded rotations. Swipe away from the browser: rotate. Go to another browser window: rotate. All apps must update layout each time.

The choice of rotation being in-app instead of in window manager was wrong.
The slow rotation is due to the animation (which has a duration of 800ms). If you use a simple item as the root object, the rotation is almost instantaneous, e.g:

Code:
import QtQuick 1.1
import com.nokia.meego 1.0

Item {
    id: appWindow

    width: screen.displayWidth
    height: screen.displayHeight

    Label {
        id: label

        anchors.centerIn: parent
        text: "In landscape"
        font.bold: true
        font.pixelSize: 40
        color: "white"
    }

    states: State {
        name: "portrait"
        when: screen.currentOrientation === Screen.Portrait
        PropertyChanges { target: label; text: "In portrait"; rotation: 270 }
    }
}
In action: http://youtu.be/E7tzmo_5bR0
__________________
'Men of high position are allowed, by a special act of grace, to accomodate their reasoning to the answer they need. Logic is only required in those of lesser rank.' - J K Galbraith

My website

GitHub
 

The Following 13 Users Say Thank You to marxian For This Useful Post: