Integrating TransactionHistoryModel

This commit is contained in:
Ilya Kitaev 2016-10-03 00:03:37 +03:00
parent 56c3579501
commit 819be91cb6
2 changed files with 8 additions and 1 deletions

View file

@ -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 }

View file

@ -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
}
}
}