Expose MeshFileHandler to QML and use it to set supported read/write file types

This commit is contained in:
Arjen Hiemstra 2015-02-24 18:11:54 +01:00
parent 9452b3ef3f
commit 5607cf5afd

View File

@ -308,6 +308,8 @@ UM.MainWindow {
//TODO: Support multiple file selection, workaround bug in KDE file dialog
//selectMultiple: true
nameFilters: UM.MeshFileHandler.supportedReadFileTypes;
onAccepted:
{
UM.Controller.addMesh(fileUrl)
@ -323,6 +325,8 @@ UM.MainWindow {
modality: UM.Application.platform == "linux" ? Qt.NonModal : Qt.Modal;
nameFilters: UM.MeshFileHandler.supportedWriteFileTypes
onAccepted:
{
Printer.saveGCode(fileUrl);