add Preferences to menu and add icons
This commit is contained in:
@@ -9,9 +9,45 @@ Item {
|
|||||||
property string title: Daemon.walletName
|
property string title: Daemon.walletName
|
||||||
|
|
||||||
property QtObject menu: Menu {
|
property QtObject menu: Menu {
|
||||||
MenuItem { text: qsTr('Addresses'); onTriggered: stack.push(Qt.resolvedUrl('Addresses.qml')); visible: Daemon.currentWallet != null }
|
id: menu
|
||||||
MenuItem { text: qsTr('Wallets'); onTriggered: stack.push(Qt.resolvedUrl('Wallets.qml')) }
|
MenuItem {
|
||||||
MenuItem { text: qsTr('Network'); onTriggered: stack.push(Qt.resolvedUrl('NetworkStats.qml')) }
|
icon.color: 'transparent'
|
||||||
|
action: Action {
|
||||||
|
text: qsTr('Addresses');
|
||||||
|
onTriggered: menu.openPage(Qt.resolvedUrl('Addresses.qml'));
|
||||||
|
enabled: Daemon.currentWallet != null
|
||||||
|
icon.source: '../../icons/tab_addresses.png'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
MenuItem {
|
||||||
|
icon.color: 'transparent'
|
||||||
|
action: Action {
|
||||||
|
text: qsTr('Wallets');
|
||||||
|
onTriggered: menu.openPage(Qt.resolvedUrl('Wallets.qml'))
|
||||||
|
icon.source: '../../icons/wallet.png'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
MenuItem {
|
||||||
|
icon.color: 'transparent'
|
||||||
|
action: Action {
|
||||||
|
text: qsTr('Network');
|
||||||
|
onTriggered: menu.openPage(Qt.resolvedUrl('NetworkStats.qml'))
|
||||||
|
icon.source: '../../icons/network.png'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
MenuItem {
|
||||||
|
icon.color: 'transparent'
|
||||||
|
action: Action {
|
||||||
|
text: qsTr('Preferences');
|
||||||
|
onTriggered: menu.openPage(Qt.resolvedUrl('Preferences.qml'))
|
||||||
|
icon.source: '../../icons/preferences.png'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function openPage(url) {
|
||||||
|
stack.push(url)
|
||||||
|
currentIndex = -1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
@@ -53,6 +89,7 @@ Item {
|
|||||||
enabled: !Daemon.currentWallet.isWatchOnly
|
enabled: !Daemon.currentWallet.isWatchOnly
|
||||||
text: qsTr('Send')
|
text: qsTr('Send')
|
||||||
}
|
}
|
||||||
|
Component.onCompleted: tabbar.setCurrentIndex(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
SwipeView {
|
SwipeView {
|
||||||
|
|||||||
Reference in New Issue
Block a user