Move back to old file dialog.
This commit is contained in:
parent
8ef688a31b
commit
214f0bc6ae
|
@ -83,13 +83,14 @@ MenuBar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LabsPlatform.FileDialog {
|
FileDialog {
|
||||||
id: fileDialog
|
id: fileDialog
|
||||||
title: translate.getTranslation("OPEN_FILE", i18n.language)
|
title: translate.getTranslation("OPEN_FILE", i18n.language)
|
||||||
nameFilters: ["All files (*)"]
|
nameFilters: ["All files (*)"]
|
||||||
|
selectMultiple: false
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
player.playerCommand(Enums.Commands.LoadFile,
|
player.playerCommand(Enums.Commands.LoadFile,
|
||||||
String(fileDialog.file))
|
String(fileDialog.fileUrl))
|
||||||
fileDialog.close()
|
fileDialog.close()
|
||||||
}
|
}
|
||||||
onRejected: {
|
onRejected: {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import QtQuick 2.0
|
import QtQuick 2.0
|
||||||
import QtQuick.Controls 2.3
|
import QtQuick.Controls 2.3
|
||||||
import QtQuick.Window 2.2
|
import QtQuick.Window 2.2
|
||||||
import Qt.labs.settings 1.0
|
|
||||||
import player 1.0
|
import player 1.0
|
||||||
|
|
||||||
Window {
|
Window {
|
||||||
|
|
Loading…
Reference in a new issue