mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 16:27:51 -06:00
Expose machines API to QML
Contributes to CL-1331
This commit is contained in:
parent
03fd9da417
commit
b3276777b7
4 changed files with 31 additions and 25 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue