KeysFiles: fix WalletKeysFilesModel, should be instantiable QML type

This commit is contained in:
xiphon
2020-07-14 01:45:34 +00:00
parent c137a6ea36
commit 13ee9b1f26
4 changed files with 19 additions and 17 deletions

View File

@@ -33,6 +33,7 @@ import QtQuick.Controls 2.0
import QtGraphicalEffects 1.0
import Qt.labs.folderlistmodel 2.1
import moneroComponents.NetworkType 1.0
import moneroComponents.WalletKeysFilesModel 1.0
import "../js/Wizard.js" as Wizard
import "../components"
@@ -45,7 +46,11 @@ Rectangle {
color: "transparent"
property alias pageHeight: pageRoot.height
property string viewName: "wizardOpenWallet1"
property int walletCount: walletKeysFilesModel ? walletKeysFilesModel.rowCount() : 0
property int walletCount: walletKeysFilesModel.rowCount()
WalletKeysFilesModel {
id: walletKeysFilesModel
}
ColumnLayout {
id: pageRoot
@@ -112,7 +117,7 @@ Rectangle {
Repeater {
id: recentList
clip: true
model: walletKeysFilesModelProxy
model: walletKeysFilesModel.proxyModel
Layout.fillWidth: true
Layout.minimumWidth: flow.itemHeight
Layout.preferredHeight: parent.height