From 34f92f38c8b66d4cfafd784cebf68e87b4e57743 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 24 Apr 2015 12:31:40 +0200 Subject: [PATCH] Layer view now has an awesome slider! --- qml/Printer.qml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/qml/Printer.qml b/qml/Printer.qml index df84a14c80..db83e9b9f9 100644 --- a/qml/Printer.qml +++ b/qml/Printer.qml @@ -167,6 +167,25 @@ UM.MainWindow { width: parent.width * 0.333; height: 250; } + + Loader + { + id: view_panel + + //anchors.left: parent.left; + //anchors.right: parent.right; + //anchors.bottom: parent.bottom + anchors.top: viewModeButton.bottom + anchors.topMargin: UM.Theme.sizes.default_margin.height; + anchors.right: sidebar.left; + anchors.rightMargin: UM.Theme.sizes.window_margin.width; + //anchors.bottom: buttons.top; + //anchors.bottomMargin: UM.Theme.sizes.default_margin.height; + + height: childrenRect.height; + + source: UM.ActiveView.valid ? UM.ActiveView.activeViewPanel : ""; + } DescriptionPane { id: descriptionPane; @@ -210,7 +229,7 @@ UM.MainWindow { right: sidebar.left; rightMargin: UM.Theme.sizes.window_margin.width; } - + id: viewModeButton //: View Mode toolbar button text: qsTr("View Mode"); iconSource: UM.Theme.icons.viewmode; @@ -373,6 +392,8 @@ UM.MainWindow { UM.MeshFileHandler.writeLocalFile(fileUrl); } } + + EngineLog { id: engineLog;