add QEAddressListModel and initial Addresses.qml page.
show sane main view when no wallet loaded. show error dialog when wallet could not be loaded. show wallet up_to_date indicator in title bar. refactor QETransactionListModel to be more self-contained.
This commit is contained in:
@@ -9,12 +9,35 @@ Item {
|
||||
property string title: Daemon.walletName
|
||||
|
||||
property QtObject menu: Menu {
|
||||
MenuItem { text: 'Wallets'; onTriggered: stack.push(Qt.resolvedUrl('Wallets.qml')) }
|
||||
MenuItem { text: 'Network'; onTriggered: stack.push(Qt.resolvedUrl('NetworkStats.qml')) }
|
||||
MenuItem { text: qsTr('Addresses'); onTriggered: stack.push(Qt.resolvedUrl('Addresses.qml')); visible: Daemon.currentWallet != null }
|
||||
MenuItem { text: qsTr('Wallets'); onTriggered: stack.push(Qt.resolvedUrl('Wallets.qml')) }
|
||||
MenuItem { text: qsTr('Network'); onTriggered: stack.push(Qt.resolvedUrl('NetworkStats.qml')) }
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
anchors.centerIn: parent
|
||||
width: parent.width
|
||||
spacing: 40
|
||||
visible: Daemon.currentWallet == null
|
||||
|
||||
Label {
|
||||
text: qsTr('No wallet loaded')
|
||||
font.pixelSize: 24
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
}
|
||||
|
||||
Button {
|
||||
text: qsTr('Open/Create Wallet')
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
onClicked: {
|
||||
stack.push(Qt.resolvedUrl('Wallets.qml'))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
visible: Daemon.currentWallet != null
|
||||
|
||||
TabBar {
|
||||
id: tabbar
|
||||
|
||||
Reference in New Issue
Block a user