mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
Settings: move Merchant menu entry
This commit is contained in:
parent
8e4124f06a
commit
5ebe3f5092
4 changed files with 14 additions and 33 deletions
|
@ -64,7 +64,6 @@ Rectangle {
|
||||||
signal addressBookClicked()
|
signal addressBookClicked()
|
||||||
signal miningClicked()
|
signal miningClicked()
|
||||||
signal signClicked()
|
signal signClicked()
|
||||||
signal merchantClicked()
|
|
||||||
signal accountClicked()
|
signal accountClicked()
|
||||||
|
|
||||||
function selectItem(pos) {
|
function selectItem(pos) {
|
||||||
|
@ -72,7 +71,6 @@ Rectangle {
|
||||||
if(pos === "History") menuColumn.previousButton = historyButton
|
if(pos === "History") menuColumn.previousButton = historyButton
|
||||||
else if(pos === "Transfer") menuColumn.previousButton = transferButton
|
else if(pos === "Transfer") menuColumn.previousButton = transferButton
|
||||||
else if(pos === "Receive") menuColumn.previousButton = receiveButton
|
else if(pos === "Receive") menuColumn.previousButton = receiveButton
|
||||||
else if(pos === "Merchant") menuColumn.previousButton = merchantButton
|
|
||||||
else if(pos === "AddressBook") menuColumn.previousButton = addressBookButton
|
else if(pos === "AddressBook") menuColumn.previousButton = addressBookButton
|
||||||
else if(pos === "Mining") menuColumn.previousButton = miningButton
|
else if(pos === "Mining") menuColumn.previousButton = miningButton
|
||||||
else if(pos === "TxKey") menuColumn.previousButton = txkeyButton
|
else if(pos === "TxKey") menuColumn.previousButton = txkeyButton
|
||||||
|
@ -454,30 +452,6 @@ Rectangle {
|
||||||
anchors.leftMargin: 20
|
anchors.leftMargin: 20
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------- Merchant tab ---------------
|
|
||||||
|
|
||||||
MoneroComponents.MenuButton {
|
|
||||||
id: merchantButton
|
|
||||||
visible: appWindow.walletMode >= 2
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
text: qsTr("Merchant") + translationManager.emptyString
|
|
||||||
symbol: qsTr("U") + translationManager.emptyString
|
|
||||||
under: receiveButton
|
|
||||||
onClicked: {
|
|
||||||
parent.previousButton.checked = false
|
|
||||||
parent.previousButton = merchantButton
|
|
||||||
panel.merchantClicked()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
MoneroComponents.MenuButtonDivider {
|
|
||||||
visible: merchantButton.present && appWindow.walletMode >= 2
|
|
||||||
anchors.left: parent.left
|
|
||||||
anchors.right: parent.right
|
|
||||||
anchors.leftMargin: 20
|
|
||||||
}
|
|
||||||
|
|
||||||
// ------------- History tab ---------------
|
// ------------- History tab ---------------
|
||||||
|
|
||||||
MoneroComponents.MenuButton {
|
MoneroComponents.MenuButton {
|
||||||
|
|
|
@ -149,6 +149,7 @@ Object {
|
||||||
property string caretUp : "\uf0d8"
|
property string caretUp : "\uf0d8"
|
||||||
property string cartArrowDown : "\uf218"
|
property string cartArrowDown : "\uf218"
|
||||||
property string cartPlus : "\uf217"
|
property string cartPlus : "\uf217"
|
||||||
|
property string cashRegister: "\uf788"
|
||||||
property string cc : "\uf20a"
|
property string cc : "\uf20a"
|
||||||
property string ccAmex : "\uf1f3"
|
property string ccAmex : "\uf1f3"
|
||||||
property string ccDinersClub : "\uf24c"
|
property string ccDinersClub : "\uf24c"
|
||||||
|
|
6
main.qml
6
main.qml
|
@ -1619,12 +1619,6 @@ ApplicationWindow {
|
||||||
updateBalance();
|
updateBalance();
|
||||||
}
|
}
|
||||||
|
|
||||||
onMerchantClicked: {
|
|
||||||
middlePanel.state = "Merchant";
|
|
||||||
middlePanel.flickable.contentY = 0;
|
|
||||||
updateBalance();
|
|
||||||
}
|
|
||||||
|
|
||||||
onTxkeyClicked: {
|
onTxkeyClicked: {
|
||||||
middlePanel.state = "TxKey";
|
middlePanel.state = "TxKey";
|
||||||
middlePanel.flickable.contentY = 0;
|
middlePanel.flickable.contentY = 0;
|
||||||
|
|
|
@ -116,7 +116,6 @@ Rectangle {
|
||||||
|
|
||||||
MoneroComponents.SettingsListItem {
|
MoneroComponents.SettingsListItem {
|
||||||
iconText: FontAwesome.ellipsisH
|
iconText: FontAwesome.ellipsisH
|
||||||
isLast: true
|
|
||||||
description: qsTr("Change the password of your wallet.") + translationManager.emptyString
|
description: qsTr("Change the password of your wallet.") + translationManager.emptyString
|
||||||
title: qsTr("Change wallet password") + translationManager.emptyString
|
title: qsTr("Change wallet password") + translationManager.emptyString
|
||||||
|
|
||||||
|
@ -137,6 +136,19 @@ Rectangle {
|
||||||
passwordDialog.open()
|
passwordDialog.open()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MoneroComponents.SettingsListItem {
|
||||||
|
iconText: FontAwesome.cashRegister
|
||||||
|
isLast: true
|
||||||
|
description: qsTr("Receive Monero for your business, easily.") + translationManager.emptyString
|
||||||
|
title: qsTr("Enter merchant mode") + translationManager.emptyString
|
||||||
|
|
||||||
|
onClicked: {
|
||||||
|
middlePanel.state = "Merchant";
|
||||||
|
middlePanel.flickable.contentY = 0;
|
||||||
|
updateBalance();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
|
|
Loading…
Reference in a new issue