aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authormarcin <z.krzysztoff7@gmail.com>2014-07-16 10:24:59 +0200
committermarcin <z.krzysztoff7@gmail.com>2014-07-16 10:24:59 +0200
commitca7472c79af2fe27cafceeb866cc729a171a78fc (patch)
treef41792465741bc5720e6d9639174449970b3e9b5 /main.qml
parent0a352f33a7fd3f9eac8362fe6a6dc64fdadf3f3d (diff)
downloadmonzero-gui-ca7472c79af2fe27cafceeb866cc729a171a78fc.tar.gz
monzero-gui-ca7472c79af2fe27cafceeb866cc729a171a78fc.tar.xz
monzero-gui-ca7472c79af2fe27cafceeb866cc729a171a78fc.zip
hide/show right panel
https://trello.com/c/BjPPAZfw/35-ability-to-hide-right-sidebar-as-discussed
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.qml b/main.qml
index 47af11ae..3fa67ac1 100644
--- a/main.qml
+++ b/main.qml
@@ -10,6 +10,8 @@ ApplicationWindow {
property var currentItem
property bool whatIsEnable: false
property bool ctrlPressed: false
+ property bool rightPanelExpanded: true
+
function altKeyReleased() { ctrlPressed = false; }
function showPageRequest(page) {
middlePanel.state = page
@@ -79,7 +81,7 @@ ApplicationWindow {
}
visible: true
- width: 1269
+ width: rightPanelExpanded ? 1269 : 1269 - 300
height: 800
color: "#FFFFFF"
x: (Screen.width - width) / 2
@@ -123,6 +125,8 @@ ApplicationWindow {
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
+ width: appWindow.rightPanelExpanded ? 300 : 0
+ visible: appWindow.rightPanelExpanded
}
MiddlePanel {