Title-bar: auto-hide disabled

This commit is contained in:
Ilya Kitaev 2016-11-16 02:02:09 +03:00
parent 24a66c184d
commit ae44eec077
2 changed files with 5 additions and 2 deletions

View file

@ -73,7 +73,7 @@ Rectangle {
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.topMargin: 31
anchors.topMargin: 48
height: logo.implicitHeight
Image {

View file

@ -771,7 +771,7 @@ ApplicationWindow {
PropertyChanges { target: resizeArea; visible: true }
PropertyChanges { target: titleBar; maximizeButtonVisible: true }
PropertyChanges { target: frameArea; blocked: false }
PropertyChanges { target: titleBar; y: -titleBar.height }
PropertyChanges { target: titleBar; y: 0 }
PropertyChanges { target: titleBar; title: qsTr("Monero") + translationManager.emptyString }
}
]
@ -826,8 +826,11 @@ ApplicationWindow {
height: 30
z: 1
hoverEnabled: true
// Uncomment to enable 'auto-hidden' titlebar
/*
onEntered: if(!blocked) titleBar.y = 0
onExited: if(!blocked) titleBar.y = -titleBar.height
*/
propagateComposedEvents: true
onPressed: mouse.accepted = false
onReleased: mouse.accepted = false