mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 08:17:59 +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 Receive receiveView: Receive { }
|
||||
property History historyView: History { }
|
||||
|
||||
property Item currentView
|
||||
|
||||
onCurrentViewChanged: {
|
||||
|
@ -81,6 +82,7 @@ Rectangle {
|
|||
}, State {
|
||||
name: "History"
|
||||
PropertyChanges { target: root; currentView: historyView }
|
||||
PropertyChanges { target: historyView; model: appWindow.currentWallet.historyModel }
|
||||
}, State {
|
||||
name: "Transfer"
|
||||
PropertyChanges { target: root; currentView: transferView }
|
||||
|
|
|
@ -32,8 +32,13 @@ import moneroComponents.Wallet 1.0
|
|||
import moneroComponents.WalletManager 1.0
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
property ListModel model: testModel
|
||||
|
||||
color: "#F0EEEE"
|
||||
|
||||
|
||||
|
||||
Text {
|
||||
id: filterHeaderText
|
||||
anchors.left: parent.left
|
||||
|
@ -365,7 +370,7 @@ Rectangle {
|
|||
anchors.leftMargin: 14
|
||||
anchors.rightMargin: 14
|
||||
onContentYChanged: flickableScroll.flickableContentYChanged()
|
||||
model: testModel
|
||||
model: root.model
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue