mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Add some typings
Contributes to CL-1153
This commit is contained in:
parent
665e2d3060
commit
3d80e28174
1 changed files with 3 additions and 3 deletions
|
@ -118,11 +118,11 @@ class PrintJobOutputModel(QObject):
|
||||||
self.nameChanged.emit()
|
self.nameChanged.emit()
|
||||||
|
|
||||||
@pyqtProperty(int, notify = timeTotalChanged)
|
@pyqtProperty(int, notify = timeTotalChanged)
|
||||||
def timeTotal(self):
|
def timeTotal(self) -> int:
|
||||||
return self._time_total
|
return self._time_total
|
||||||
|
|
||||||
@pyqtProperty(int, notify = timeElapsedChanged)
|
@pyqtProperty(int, notify = timeElapsedChanged)
|
||||||
def timeElapsed(self):
|
def timeElapsed(self) -> int:
|
||||||
return self._time_elapsed
|
return self._time_elapsed
|
||||||
|
|
||||||
@pyqtProperty(int, notify = timeElapsedChanged)
|
@pyqtProperty(int, notify = timeElapsedChanged)
|
||||||
|
@ -138,7 +138,7 @@ class PrintJobOutputModel(QObject):
|
||||||
return result
|
return result
|
||||||
|
|
||||||
@pyqtProperty(str, notify=stateChanged)
|
@pyqtProperty(str, notify=stateChanged)
|
||||||
def state(self):
|
def state(self) -> str:
|
||||||
return self._state
|
return self._state
|
||||||
|
|
||||||
@pyqtProperty(bool, notify=stateChanged)
|
@pyqtProperty(bool, notify=stateChanged)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue