Expose machines API to QML

Contributes to CL-1331
This commit is contained in:
Ian Paschal 2019-05-09 16:19:59 +02:00
parent 03fd9da417
commit b3276777b7
4 changed files with 31 additions and 25 deletions

View file

@ -25,8 +25,8 @@ class Machines(QObject):
super().__init__(parent)
self._application = application
@pyqtSlot(result=dict)
def getCurrentMachine(self) -> dict:
@pyqtSlot(result="QVariantMap")
def getCurrentMachine(self) -> "QVariantMap":
# Since Cura doesn't have a machine class, we're going to make a fake one to make our
# lives a little bit easier.
fake_machine = {