mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-10 23:38:53 -07:00
Update Dialog imports to remove version
Update FileDialogs selectExisting -> fileMode and folder -> currentFolder CURA-8640
This commit is contained in:
parent
90f03befc8
commit
f327c2479b
9 changed files with 19 additions and 17 deletions
|
|
@ -4,7 +4,7 @@
|
|||
import QtQuick 2.7
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQuick.Layouts 1.3
|
||||
import QtQuick.Dialogs 6.0
|
||||
import QtQuick.Dialogs
|
||||
|
||||
import UM 1.5 as UM
|
||||
import Cura 1.6 as Cura
|
||||
|
|
@ -349,9 +349,9 @@ UM.ManagementPage
|
|||
{
|
||||
id: exportDialog
|
||||
title: catalog.i18nc("@title:window", "Export Profile")
|
||||
selectExisting: false
|
||||
fileMode: FileDialog.SaveFile
|
||||
nameFilters: base.qualityManagementModel.getFileNameFilters("profile_writer")
|
||||
folder: CuraApplication.getDefaultPath("dialog_profile_path")
|
||||
currentFolder: CuraApplication.getDefaultPath("dialog_profile_path")
|
||||
onAccepted:
|
||||
{
|
||||
var result = Cura.ContainerManager.exportQualityChangesGroup(base.currentItem.quality_changes_group,
|
||||
|
|
@ -414,9 +414,9 @@ UM.ManagementPage
|
|||
{
|
||||
id: importDialog
|
||||
title: catalog.i18nc("@title:window", "Import Profile")
|
||||
selectExisting: true
|
||||
fileMode: FileDialog.OpenFile
|
||||
nameFilters: base.qualityManagementModel.getFileNameFilters("profile_reader")
|
||||
folder: CuraApplication.getDefaultPath("dialog_profile_path")
|
||||
currentFolder: CuraApplication.getDefaultPath("dialog_profile_path")
|
||||
onAccepted:
|
||||
{
|
||||
var result = Cura.ContainerManager.importProfile(fileUrl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue