1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-22 03:15:52 +01:00

shortcuts fix

This commit is contained in:
marcin 2014-07-09 18:03:37 +02:00
parent ecb283c140
commit 9256e5dfac
3 changed files with 14 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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")