Use dialogs from qt labs platform and fix a image downloading bug.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
12
imports/Spectral/Dialog/OpenFolderDialog.qml
Normal file
12
imports/Spectral/Dialog/OpenFolderDialog.qml
Normal file
@@ -0,0 +1,12 @@
|
||||
import QtQuick 2.12
|
||||
import Qt.labs.platform 1.1
|
||||
|
||||
FolderDialog {
|
||||
signal chosen(string path)
|
||||
|
||||
id: root
|
||||
|
||||
title: "Please choose a folder"
|
||||
|
||||
onAccepted: chosen(folder)
|
||||
}
|
||||
@@ -10,3 +10,4 @@ AcceptInvitationDialog 2.0 AcceptInvitationDialog.qml
|
||||
FontFamilyDialog 2.0 FontFamilyDialog.qml
|
||||
AccountDetailDialog 2.0 AccountDetailDialog.qml
|
||||
OpenFileDialog 2.0 OpenFileDialog.qml
|
||||
OpenFolderDialog 2.0 OpenFolderDialog.qml
|
||||
|
||||
Reference in New Issue
Block a user