Commit 273227c0 authored by Filip Matijević's avatar Filip Matijević

[rotation] prevent ShutdownScreen from rotating

parent 4d3af04f
import QtQuick 2.0 import QtQuick 2.0
import QtQuick.Window 2.0 import QtQuick.Window 2.0
import org.nemomobile.lipstick 0.1 import org.nemomobile.lipstick 0.1
import ".."
Rectangle { Rectangle {
id: shutdownWindow id: shutdownWindow
width: Screen.width width: parent.width
height: Screen.height height: parent.height
color: "black" color: "black"
property bool shouldVisible property bool shouldVisible
opacity: shutdownScreen.windowVisible opacity: shutdownScreen.windowVisible
GlacierRotation {
id: glacierRotation
rotationParent: shutdownWindow.parent
}
Connections {
target: shutdownScreen
onWindowVisibleChanged: {
if (shutdownScreen.windowVisible) {
glacierRotation.rotateRotationParent(nativeOrientation)
}
}
}
Image { Image {
anchors.centerIn: parent anchors.centerIn: parent
source: shutdownMode ? "" : "image://theme/graphic-shutdown-logo" source: shutdownMode ? "" : "image://theme/graphic-shutdown-logo"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment