CuraApplication now also registers object defined by QTApplication

CURA-3633
This commit is contained in:
Jaime van Kessel 2017-04-07 11:02:53 +02:00
parent 02d4bd75fe
commit ffa0e3e5e2

View file

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