mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 16:28:14 +00:00
Integrating TransactionHistoryModel
This commit is contained in:
parent
56c3579501
commit
819be91cb6
2 changed files with 8 additions and 1 deletions
|
@ -37,6 +37,7 @@ Rectangle {
|
||||||
property Transfer transferView: Transfer { }
|
property Transfer transferView: Transfer { }
|
||||||
property Receive receiveView: Receive { }
|
property Receive receiveView: Receive { }
|
||||||
property History historyView: History { }
|
property History historyView: History { }
|
||||||
|
|
||||||
property Item currentView
|
property Item currentView
|
||||||
|
|
||||||
onCurrentViewChanged: {
|
onCurrentViewChanged: {
|
||||||
|
@ -81,6 +82,7 @@ Rectangle {
|
||||||
}, State {
|
}, State {
|
||||||
name: "History"
|
name: "History"
|
||||||
PropertyChanges { target: root; currentView: historyView }
|
PropertyChanges { target: root; currentView: historyView }
|
||||||
|
PropertyChanges { target: historyView; model: appWindow.currentWallet.historyModel }
|
||||||
}, State {
|
}, State {
|
||||||
name: "Transfer"
|
name: "Transfer"
|
||||||
PropertyChanges { target: root; currentView: transferView }
|
PropertyChanges { target: root; currentView: transferView }
|
||||||
|
|
|
@ -32,8 +32,13 @@ import moneroComponents.Wallet 1.0
|
||||||
import moneroComponents.WalletManager 1.0
|
import moneroComponents.WalletManager 1.0
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
|
id: root
|
||||||
|
property ListModel model: testModel
|
||||||
|
|
||||||
color: "#F0EEEE"
|
color: "#F0EEEE"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
id: filterHeaderText
|
id: filterHeaderText
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
|
@ -365,7 +370,7 @@ Rectangle {
|
||||||
anchors.leftMargin: 14
|
anchors.leftMargin: 14
|
||||||
anchors.rightMargin: 14
|
anchors.rightMargin: 14
|
||||||
onContentYChanged: flickableScroll.flickableContentYChanged()
|
onContentYChanged: flickableScroll.flickableContentYChanged()
|
||||||
model: testModel
|
model: root.model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue