Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2019-01-03 18:02:49 +0300
committerGhostkeeper <rubend@tutanota.com>2019-01-03 18:04:27 +0300
commit798c1f198c48c0f3f590bca64f254c776befc0da (patch)
tree82b4acece4aa14ae419318429e14c9994c398e41 /plugins/MonitorStage
parent6eca0ce69f906457a0760d4e8ae9c01c0c57e449 (diff)
Hide action panel when displaying a stage with a background
This is not the worst hack ever, but it's quite a hack. Contributes to issue CURA-6054.
Diffstat (limited to 'plugins/MonitorStage')
-rw-r--r--plugins/MonitorStage/MonitorMain.qml41
1 files changed, 19 insertions, 22 deletions
diff --git a/plugins/MonitorStage/MonitorMain.qml b/plugins/MonitorStage/MonitorMain.qml
index 34cf4ad801..5fda32db9e 100644
--- a/plugins/MonitorStage/MonitorMain.qml
+++ b/plugins/MonitorStage/MonitorMain.qml
@@ -1,4 +1,5 @@
-// Copyright (c) 2017 Ultimaker B.V.
+// Copyright (c) 2018 Ultimaker B.V.
+// Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.10
import QtQuick.Controls 1.4
@@ -7,31 +8,27 @@ import UM 1.3 as UM
import Cura 1.0 as Cura
-Item
+// We show a nice overlay on the 3D viewer when the current output device has no monitor view
+Rectangle
{
- // We show a nice overlay on the 3D viewer when the current output device has no monitor view
- Rectangle
- {
- id: viewportOverlay
+ id: viewportOverlay
- color: UM.Theme.getColor("viewport_overlay")
- anchors.fill: parent
+ color: UM.Theme.getColor("viewport_overlay")
+ anchors.fill: parent
- // This mouse area is to prevent mouse clicks to be passed onto the scene.
- MouseArea
- {
- anchors.fill: parent
- acceptedButtons: Qt.AllButtons
- onWheel: wheel.accepted = true
- }
-
- // Disable dropping files into Cura when the monitor page is active
- DropArea
- {
- anchors.fill: parent
- }
+ // This mouse area is to prevent mouse clicks to be passed onto the scene.
+ MouseArea
+ {
+ anchors.fill: parent
+ acceptedButtons: Qt.AllButtons
+ onWheel: wheel.accepted = true
}
+ // Disable dropping files into Cura when the monitor page is active
+ DropArea
+ {
+ anchors.fill: parent
+ }
Loader
{
id: monitorViewComponent
@@ -45,4 +42,4 @@ Item
sourceComponent: Cura.MachineManager.printerOutputDevices.length > 0 ? Cura.MachineManager.printerOutputDevices[0].monitorItem : null
}
-}
+} \ No newline at end of file