Browse Source

Show print time in monitor tab

Contributes to CL-1040
Ian Paschal 6 years ago
parent
commit
35ed234991
1 changed files with 13 additions and 0 deletions
  1. 13 0
      plugins/UM3NetworkPrinting/resources/qml/PrintJobInfoBlock.qml

+ 13 - 0
plugins/UM3NetworkPrinting/resources/qml/PrintJobInfoBlock.qml

@@ -168,6 +168,19 @@ Item {
                             width: 0.5 * printJobPreview.width;
                         }
                     }
+
+                    Label {
+                        id: totalTimeLabel;
+                        anchors {
+                            bottom: parent.bottom;
+                            right: parent.right;
+                        }
+                        color: UM.Theme.getColor("text");
+                        elide: Text.ElideRight;
+                        font: UM.Theme.getFont("default");
+                        opacity: 0.6;
+                        text: printJob ? OutputDevice.formatDuration(printJob.timeTotal) : "";
+                    }
                 }
 
                 // Divider