Added rough outline of the redesigned cluster controlItem

CL-893
This commit is contained in:
Jaime van Kessel 2018-08-17 16:10:23 +02:00
parent b074d2bdf3
commit 1fa3b60f94
3 changed files with 175 additions and 188 deletions

View file

@ -351,6 +351,10 @@ class ClusterUM3OutputDevice(NetworkedPrinterOutputDevice):
result.append({"machine_type": machine_type, "count": str(printer_count[machine_type])})
return result
@pyqtProperty("QVariantList", notify=clusterPrintersChanged)
def printers(self):
return self._printers
@pyqtSlot(int, result = str)
def formatDuration(self, seconds: int) -> str:
return Duration(seconds).getDisplayString(DurationFormat.Format.Short)