Start work on cloud icon

This commit is contained in:
ChrisTerBeke 2018-12-18 16:29:13 +01:00
parent 25caf1a087
commit 0588c54035
4 changed files with 23 additions and 5 deletions

View file

@ -56,6 +56,7 @@ class PrinterOutputDevice(QObject, OutputDevice):
# Put ConnectionType here with Q_ENUMS() so it can be registered as a QML type and accessible via QML, and there is
# no need to remember what those Enum integer values mean.
ConnectionType = ConnectionType
Q_ENUMS(ConnectionType)
printersChanged = pyqtSignal()
@ -133,7 +134,11 @@ class PrinterOutputDevice(QObject, OutputDevice):
def getConnectionType(self) -> "ConnectionType":
return self._connection_type
@pyqtProperty(str, notify = connectionStateChanged)
@pyqtProperty(int, constant = True)
def connectionType(self) -> "ConnectionType":
return self._connection_type
@pyqtProperty(int, notify = connectionStateChanged)
def connectionState(self) -> "ConnectionState":
return self._connection_state