Merge pull request #4755 from Ultimaker/CL-1040_show_print_time_in_monitor

CL-1140 Show print time in monitor tab
This commit is contained in:
Simon Edwards 2018-11-08 11:53:47 +01:00 committed by GitHub
commit 69c9ffaf61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,6 +168,18 @@ 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");
text: printJob ? OutputDevice.formatDuration(printJob.timeTotal) : "";
}
}
// Divider