Use dialogs from qt labs platform and fix a image downloading bug.

This commit is contained in:
Black Hat
2019-05-04 10:18:09 +08:00
parent 85ceec7b44
commit ce688e9756
6 changed files with 34 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
import QtQuick 2.12
import QtQuick.Dialogs 1.2
import Qt.labs.platform 1.1
FileDialog {
signal chosen(string path)
@@ -7,7 +7,6 @@ FileDialog {
id: root
title: "Please choose a file"
selectMultiple: false
onAccepted: chosen(selectFolder ? folder : fileUrl)
onAccepted: chosen(file)
}