QmlEngine is shared.

pull/1/head
Johan Smith Agudelo Rodriguez 8 years ago committed by GitHub
parent c80857c16b
commit 8a3da51fe3

@ -116,8 +116,8 @@ void NowDockView::init()
connect(this, SIGNAL(widthChanged(int)), this, SIGNAL(widthChanged()));
connect(this, SIGNAL(heightChanged(int)), this, SIGNAL(heightChanged()));
rootContext()->setContextProperty(QStringLiteral("dock"), this);
engine()->rootContext()->setContextProperty(QStringLiteral("dock"), this);
rootContext()->setContextProperty(QStringLiteral("panel"), this);
// engine()->rootContext()->setContextProperty(QStringLiteral("dock"), this);
setSource(corona()->kPackage().filePath("nowdockui"));

Loading…
Cancel
Save