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

[rotation] prevent ShutdownScreen from rotating

parent 4d3af04f
import QtQuick 2.0
import QtQuick.Window 2.0
import org.nemomobile.lipstick 0.1
import ".."
Rectangle {
id: shutdownWindow
width: Screen.width
height: Screen.height
width: parent.width
height: parent.height
color: "black"
property bool shouldVisible
opacity: shutdownScreen.windowVisible
GlacierRotation {
id: glacierRotation
rotationParent: shutdownWindow.parent
}
Connections {
target: shutdownScreen
onWindowVisibleChanged: {
if (shutdownScreen.windowVisible) {
glacierRotation.rotateRotationParent(nativeOrientation)
}
}
}
Image {
anchors.centerIn: parent
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