mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-02 13:47:25 -04:00
Integrating TransactionHistoryModel
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user