1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-27 06:03:51 +03:00

QmlEngine is shared.

This commit is contained in:
Johan Smith Agudelo Rodriguez 2016-12-28 13:23:15 -05:00 committed by GitHub
parent c80857c16b
commit 8a3da51fe3

View File

@ -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"));