Usages of SubmodelProxyModel migrated to ObjectProxyModel
This commit is contained in:
parent
1e06a9c15a
commit
7c24d19241
|
@ -179,13 +179,15 @@ StatusListView {
|
||||||
|
|
||||||
onClicked: shareAddressCheckbox.toggle()
|
onClicked: shareAddressCheckbox.toggle()
|
||||||
|
|
||||||
SubmodelProxyModel {
|
ObjectProxyModel {
|
||||||
id: filteredBalances
|
id: filteredBalances
|
||||||
sourceModel: root.walletAssetsModel
|
|
||||||
submodelRoleName: "balances"
|
|
||||||
delegateModel: SortFilterProxyModel {
|
|
||||||
sourceModel: submodel
|
|
||||||
|
|
||||||
|
sourceModel: root.walletAssetsModel
|
||||||
|
|
||||||
|
delegate: SortFilterProxyModel {
|
||||||
|
readonly property SortFilterProxyModel balances: this
|
||||||
|
|
||||||
|
sourceModel: model.balances
|
||||||
filters: RegExpFilter {
|
filters: RegExpFilter {
|
||||||
roleName: "account"
|
roleName: "account"
|
||||||
pattern: listItem.address
|
pattern: listItem.address
|
||||||
|
@ -193,6 +195,9 @@ StatusListView {
|
||||||
caseSensitivity: Qt.CaseInsensitive
|
caseSensitivity: Qt.CaseInsensitive
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
expectedRoles: "balances"
|
||||||
|
exposedRoles: "balances"
|
||||||
}
|
}
|
||||||
|
|
||||||
SortFilterProxyModel {
|
SortFilterProxyModel {
|
||||||
|
|
|
@ -105,22 +105,27 @@ QObject {
|
||||||
// storing txHash to verify against tx completed event
|
// storing txHash to verify against tx completed event
|
||||||
property string txHash
|
property string txHash
|
||||||
|
|
||||||
readonly property SubmodelProxyModel filteredBalancesModel: SubmodelProxyModel {
|
readonly property ObjectProxyModel filteredBalancesModel: ObjectProxyModel {
|
||||||
sourceModel: root.walletAssetsStore.baseGroupedAccountAssetModel
|
sourceModel: root.walletAssetsStore.baseGroupedAccountAssetModel
|
||||||
submodelRoleName: "balances"
|
|
||||||
delegateModel: SortFilterProxyModel {
|
delegate: SortFilterProxyModel {
|
||||||
sourceModel: joinModel
|
readonly property var balances: this
|
||||||
filters: ValueFilter {
|
|
||||||
roleName: "chainId"
|
sourceModel: LeftJoinModel {
|
||||||
value: root.swapFormData.selectedNetworkChainId
|
leftModel: model.balances
|
||||||
}
|
|
||||||
readonly property LeftJoinModel joinModel: LeftJoinModel {
|
|
||||||
leftModel: submodel
|
|
||||||
rightModel: root.swapStore.flatNetworks
|
rightModel: root.swapStore.flatNetworks
|
||||||
|
|
||||||
joinRole: "chainId"
|
joinRole: "chainId"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
filters: ValueFilter {
|
||||||
|
roleName: "chainId"
|
||||||
|
value: root.swapFormData.selectedNetworkChainId
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
expectedRoles: "balances"
|
||||||
|
exposedRoles: "balances"
|
||||||
}
|
}
|
||||||
|
|
||||||
function processAccountBalance(address) {
|
function processAccountBalance(address) {
|
||||||
|
|
Loading…
Reference in New Issue