From 8476090ed237ee2e2c0dbc97b1dd727b787598f7 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Thu, 7 Jul 2016 01:36:52 +0200 Subject: [PATCH] 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 --- cura/CuraApplication.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 4883194803..eb9c5e6d3b 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -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)