summaryrefslogtreecommitdiffstats
path: root/examples/demos
diff options
context:
space:
mode:
authorVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2020-11-19 12:25:42 +0100
committerVenugopal Shivashankar <Venugopal.Shivashankar@qt.io>2020-11-26 11:26:13 +0100
commit8d01ff7bedec43714dbb10aa309eefa6ee3ec638 (patch)
tree4f3a7971de96a6e01ef638de989559dc9a9776b0 /examples/demos
parentc907a594e0f788eb838a9c4c96ff3271108304a5 (diff)
Example: Drop the use of Qt Quick Dialogs
Use the Qt.labs.platform instead and adapt the FileDialog usage accordingly. Pick-to: 6.0 6.0.0 Change-Id: I18c94ee3571728e7523626b34d48e54434ee5f6f Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'examples/demos')
-rw-r--r--examples/demos/photosurface/photosurface.qml7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/demos/photosurface/photosurface.qml b/examples/demos/photosurface/photosurface.qml
index 5d1445d77..cd0e5d509 100644
--- a/examples/demos/photosurface/photosurface.qml
+++ b/examples/demos/photosurface/photosurface.qml
@@ -48,9 +48,9 @@
**
****************************************************************************/
import QtQuick 2.6
-import QtQuick.Dialogs 1.0
import QtQuick.Window 2.1
import Qt.labs.folderlistmodel 1.0
+import Qt.labs.platform 1.1
Window {
id: root
@@ -62,12 +62,11 @@ Window {
property var currentFrame: undefined
property real surfaceViewportRatio: 1.5
- FileDialog {
+ FolderDialog {
id: fileDialog
title: "Choose a folder with some images"
- selectFolder: true
folder: picturesLocation
- onAccepted: folderModel.folder = fileUrl + "/"
+ onAccepted: folderModel.folder = folder + "/"
}
Flickable {