marcin
2014-07-15 16:03:39 +02:00
parent c65a878d8c
commit ba65d921e8
15 changed files with 125 additions and 141 deletions

View File

@@ -140,5 +140,30 @@ ApplicationWindow {
visible: false
z: 100
}
MouseArea {
id: frameArea
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
height: 30
z: 1
hoverEnabled: true
onEntered: titleBar.y = 0
onExited: titleBar.y = -titleBar.height
propagateComposedEvents: true
onPressed: mouse.accepted = false
onReleased: mouse.accepted = false
onMouseXChanged: {
titleBar.mouseX = mouseX
titleBar.mouseY = mouseY
}
}
TitleBar {
id: titleBar
anchors.left: parent.left
anchors.right: parent.right
}
}
}