Made backend available in qml, calling forceSlice and stopSlicing directly. CURA-3214

This commit is contained in:
Jack Ha 2017-02-16 10:56:01 +01:00
parent 59a8c21c73
commit 464bf73f85
3 changed files with 21 additions and 13 deletions

View file

@ -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():