Also expose the main Cura application object as CuraApplication to QML

This way we can start cleaning things up and moving away from the
"Printer" name

Contributes to CURA-341
This commit is contained in:
Arjen Hiemstra 2016-07-07 01:36:52 +02:00
parent 750ecfc2e1
commit 8476090ed2

View file

@ -414,6 +414,7 @@ class CuraApplication(QtApplication):
# \param engine The QML engine.
def registerObjects(self, engine):
engine.rootContext().setContextProperty("Printer", self)
engine.rootContext().setContextProperty("CuraApplication", self)
self._print_information = PrintInformation.PrintInformation()
engine.rootContext().setContextProperty("PrintInformation", self._print_information)
self._cura_actions = CuraActions.CuraActions(self)