aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LeftPanel.qml12
-rw-r--r--components/AddressBookTable.qml2
-rw-r--r--main.qml1
3 files changed, 14 insertions, 1 deletions
diff --git a/LeftPanel.qml b/LeftPanel.qml
index 67d9e3a3..201db550 100644
--- a/LeftPanel.qml
+++ b/LeftPanel.qml
@@ -10,6 +10,17 @@ Rectangle {
signal addressBookClicked()
signal miningClicked()
+ function selectItem(pos) {
+ menuColumn.previousButton.checked = false
+ if(pos === "Dashboard") menuColumn.previousButton = dashboardButton
+ else if(pos === "History") menuColumn.previousButton = historyButton
+ else if(pos === "Transfer") menuColumn.previousButton = transferButton
+ else if(pos === "AddressBook") menuColumn.previousButton = addressBookButton
+ else if(pos === "Minning") menuColumn.previousButton = miningButton
+ else if(pos === "Settings") menuColumn.previousButton = settingsButton
+ menuColumn.previousButton.checked = true
+ }
+
width: 260
color: "#FFFFFF"
@@ -106,6 +117,7 @@ Rectangle {
color: "#1C1C1C"
Column {
+ id: menuColumn
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
diff --git a/components/AddressBookTable.qml b/components/AddressBookTable.qml
index 2a8ed11a..56ee7a6b 100644
--- a/components/AddressBookTable.qml
+++ b/components/AddressBookTable.qml
@@ -47,7 +47,7 @@ ListView {
Text {
id: paymentIdText
anchors.top: parent.top
- width: text.length ? 122 : 0
+ width: text.length ? 139 : 0
font.family: "Arial"
font.bold: true
font.pixelSize: 19
diff --git a/main.qml b/main.qml
index b85a8cae..f9ecc6a9 100644
--- a/main.qml
+++ b/main.qml
@@ -21,6 +21,7 @@ ApplicationWindow {
else if(seq === "Ctrl+B") middlePanel.state = "AddressBook"
else if(seq === "Ctrl+M") middlePanel.state = "Minning"
else if(seq === "Ctrl+S") middlePanel.state = "Settings"
+ leftPanel.selectItem(middlePanel.state)
}
function mousePressed(obj, mouseX, mouseY) {
if(obj.objectName === "appWindow")