diff options
| author | xiphon <xiphon@protonmail.com> | 2020-07-14 01:45:34 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2020-07-14 23:44:46 +0000 |
| commit | 13ee9b1f26831b208b33bb977d0fdda61bfec452 (patch) | |
| tree | 111b476735dce1cdc9fb45ec30b8c7a7d286224a /wizard | |
| parent | c137a6ea36040aee20366933935805eff67ae3f8 (diff) | |
| download | monzero-gui-13ee9b1f26831b208b33bb977d0fdda61bfec452.tar.gz monzero-gui-13ee9b1f26831b208b33bb977d0fdda61bfec452.tar.xz monzero-gui-13ee9b1f26831b208b33bb977d0fdda61bfec452.zip | |
KeysFiles: fix WalletKeysFilesModel, should be instantiable QML type
Diffstat (limited to 'wizard')
| -rw-r--r-- | wizard/WizardOpenWallet1.qml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/wizard/WizardOpenWallet1.qml b/wizard/WizardOpenWallet1.qml index 85bc48d7..9385b88b 100644 --- a/wizard/WizardOpenWallet1.qml +++ b/wizard/WizardOpenWallet1.qml @@ -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 |
