From 374ab658a4e85fc72beb79370e7037944f28391c Mon Sep 17 00:00:00 2001 From: Johan Smith Agudelo Rodriguez Date: Mon, 26 Dec 2016 16:05:44 -0500 Subject: [PATCH] dock property accessible from containment --- corona/nowdockview.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/corona/nowdockview.cpp b/corona/nowdockview.cpp index c9f05cec9..ff919b5e3 100644 --- a/corona/nowdockview.cpp +++ b/corona/nowdockview.cpp @@ -115,7 +115,8 @@ void NowDockView::init() connect(this, SIGNAL(widthChanged(int)), this, SIGNAL(widthChanged())); connect(this, SIGNAL(heightChanged(int)), this, SIGNAL(heightChanged())); - rootContext()->setContextProperty(QStringLiteral("panel"), this); + rootContext()->setContextProperty(QStringLiteral("dock"), this); + engine()->rootContext()->setContextProperty(QStringLiteral("dock"), this); setSource(corona()->kPackage().filePath("nowdockui"));