Browse Source

Display the rotation angle when we are performing a rotation

Contributes to Asana issue 36760525983768
Arjen Hiemstra 9 years ago
parent
commit
dfb379dfc8
1 changed files with 13 additions and 0 deletions
  1. 13 0
      resources/qml/Cura.qml

+ 13 - 0
resources/qml/Cura.qml

@@ -279,6 +279,19 @@ UM.MainWindow {
                 configureMachinesAction: actions.configureMachines;
                 saveAction: actions.save;
             }
+
+            Rectangle {
+                x: base.mouseX;
+                y: base.mouseY;
+
+                width: childrenRect.width;
+                height: childrenRect.height;
+                Label {
+                    text: UM.ActiveTool.properties.Rotation != undefined ? "%1°".arg(UM.ActiveTool.properties.Rotation) : "";
+                }
+
+                visible: UM.ActiveTool.valid && UM.ActiveTool.properties.Rotation != undefined;
+            }
         }
     }