Merge pull request #171

ae44eec Title-bar: auto-hide disabled (Ilya Kitaev)
This commit is contained in:
Riccardo Spagni 2016-11-17 17:02:45 +02:00
commit bfff5e0ec7
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
2 changed files with 5 additions and 2 deletions

View File

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

View File

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