Ammend last commit

This commit is contained in:
David Edmundson 2014-02-07 19:37:06 +01:00
parent 39ce54c0db
commit fb0728d40a

View File

@ -125,7 +125,7 @@ void ContainmentInterface::init()
if (containmentGraphicObject) { if (containmentGraphicObject) {
QVariantHash toolboxProperties; QVariantHash toolboxProperties;
toolboxProperties["parent"] = QVariant::fromValue(containmentGraphicObject); toolboxProperties["parent"] = QVariant::fromValue(containmentGraphicObject);
QObject *toolBoxObject = qmlObject()->createObjectFromSource(QUrl::fromLocalFile(pkg.filePath("mainscript")), toolboxProperties); QObject *toolBoxObject = qmlObject()->createObjectFromSource(QUrl::fromLocalFile(pkg.filePath("mainscript")), 0, toolboxProperties);
if (toolBoxObject) { if (toolBoxObject) {
containmentGraphicObject->setProperty("toolBox", QVariant::fromValue(toolBoxObject)); containmentGraphicObject->setProperty("toolBox", QVariant::fromValue(toolBoxObject));
} }