blocked title bar in wizard

This commit is contained in:
marcin 2014-08-22 11:03:10 +02:00
parent 48add34d57
commit ac5d77d7ab
2 changed files with 17 additions and 23 deletions

View file

@ -7,7 +7,7 @@ Rectangle {
color: "#000000" color: "#000000"
y: -height y: -height
property int mouseX: 0 property int mouseX: 0
property string walletName: "Donations" property string title: "Monero - Donations"
property bool containsMouse: false property bool containsMouse: false
property alias maximizeButtonVisible: maximizeButton.visible property alias maximizeButtonVisible: maximizeButton.visible
property alias basicButtonVisible: goToBasicVersionButton.visible property alias basicButtonVisible: goToBasicVersionButton.visible
@ -19,7 +19,7 @@ Rectangle {
font.pixelSize: 15 font.pixelSize: 15
font.letterSpacing: -1 font.letterSpacing: -1
color: "#FFFFFF" color: "#FFFFFF"
text: qsTr("Monero - %1").arg(titleBar.walletName) text: titleBar.title
} }
Behavior on y { Behavior on y {

View file

@ -111,8 +111,11 @@ ApplicationWindow {
PropertyChanges { target: appWindow; width: 930; } PropertyChanges { target: appWindow; width: 930; }
PropertyChanges { target: appWindow; height: 595; } PropertyChanges { target: appWindow; height: 595; }
PropertyChanges { target: resizeArea; visible: false } PropertyChanges { target: resizeArea; visible: false }
}, PropertyChanges { target: titleBar; maximizeButtonVisible: false }
State { PropertyChanges { target: frameArea; blocked: true }
PropertyChanges { target: titleBar; y: 0 }
PropertyChanges { target: titleBar; title: "Program setup wizard" }
}, State {
name: "normal" name: "normal"
PropertyChanges { target: leftPanel; visible: true } PropertyChanges { target: leftPanel; visible: true }
PropertyChanges { target: rightPanel; visible: true } PropertyChanges { target: rightPanel; visible: true }
@ -122,6 +125,10 @@ ApplicationWindow {
PropertyChanges { target: appWindow; width: rightPanelExpanded ? 1269 : 1269 - 300; } PropertyChanges { target: appWindow; width: rightPanelExpanded ? 1269 : 1269 - 300; }
PropertyChanges { target: appWindow; height: 800; } PropertyChanges { target: appWindow; height: 800; }
PropertyChanges { target: resizeArea; visible: true } PropertyChanges { target: resizeArea; visible: true }
PropertyChanges { target: titleBar; maximizeButtonVisible: true }
PropertyChanges { target: frameArea; blocked: false }
PropertyChanges { target: titleBar; y: -titleBar.height }
PropertyChanges { target: titleBar; title: "Monero - Donations" }
} }
] ]
@ -204,6 +211,11 @@ ApplicationWindow {
properties: "blocked" properties: "blocked"
value: true value: true
} }
PropertyAction {
target: resizeArea
properties: "visible"
value: false
}
NumberAnimation { NumberAnimation {
target: appWindow target: appWindow
properties: "height" properties: "height"
@ -258,7 +270,7 @@ ApplicationWindow {
value: false value: false
} }
PropertyAction { PropertyAction {
targets: [leftPanel, middlePanel, rightPanel] targets: [leftPanel, middlePanel, rightPanel, resizeArea]
properties: "visible" properties: "visible"
value: true value: true
} }
@ -336,24 +348,6 @@ ApplicationWindow {
} }
} }
// MouseArea {
// anchors.top: parent.top
// anchors.bottom: parent.bottom
// anchors.right: parent.right
// anchors.topMargin: 30
// anchors.bottomMargin: 3
// cursorShape: Qt.SizeHorCursor
// width: 3
// property int previousX: 0
// onPressed: previousX = mouseX
// onPositionChanged: {
// var diff = previousX - mouseX
// if(middlePanel.width - diff > 655)
// appWindow.width -= diff
// else appWindow.width = parent.maxWidth
// }
// }
TitleBar { TitleBar {
id: titleBar id: titleBar
anchors.left: parent.left anchors.left: parent.left