mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Made backend available in qml, calling forceSlice and stopSlicing directly. CURA-3214
This commit is contained in:
parent
59a8c21c73
commit
464bf73f85
3 changed files with 21 additions and 13 deletions
|
@ -670,6 +670,12 @@ class CuraApplication(QtApplication):
|
|||
|
||||
qmlRegisterType(QUrl.fromLocalFile(path), "Cura", 1, 0, type_name)
|
||||
|
||||
## Get the backend of the application (the program that does the heavy lifting).
|
||||
# \returns Backend \type{Backend}
|
||||
@pyqtSlot(result = "QObject*")
|
||||
def getBackend(self):
|
||||
return self._backend
|
||||
|
||||
def onSelectionChanged(self):
|
||||
if Selection.hasSelection():
|
||||
if self.getController().getActiveTool():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue