summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-01-23 12:41:24 +0100
committerUlf Hermann <ulf.hermann@qt.io>2019-01-24 12:07:54 +0000
commite08c67ef5b5ac41f31c6140f2d1e67ee22222f65 (patch)
tree0580d597435d2173b281dacd255b22a935f2f70f
parentea463aa2cf8986664aeb9c1f9246aa32c4abbfff (diff)
downloadqtquickcontrols-e08c67ef5b5ac41f31c6140f2d1e67ee22222f65.tar.gz
DefaultFileDialog: Don't assign QQmlComponent* to QQuickItem*
This used to work, but it's really, really evil. Change-Id: Icd214f7718737600b5c77cdbd72008aa61438729 Fixes: QTBUG-73223 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
-rw-r--r--src/dialogs/DefaultFileDialog.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/dialogs/DefaultFileDialog.qml b/src/dialogs/DefaultFileDialog.qml
index 8911976c..da273fc9 100644
--- a/src/dialogs/DefaultFileDialog.qml
+++ b/src/dialogs/DefaultFileDialog.qml
@@ -51,8 +51,7 @@ import "qml"
AbstractFileDialog {
id: root
- Component {
- id: modelComponent
+ property Component modelComponent: Component {
FolderListModel {
showFiles: !root.selectFolder
nameFilters: root.selectedNameFilterExtensions