Improve debug information for some plasmoids

I've been trying to figure out why there's so many qml scripts which errors always specify "<Unknown Files>".
This patch is not ideal, but improves the situation slightly.

REVIEW: 123575
This commit is contained in:
Aleix Pol Gonzalez 2015-05-14 02:55:22 +02:00 committed by Aleix Pol
parent 37590e2d2b
commit dedc3cc9ae

View File

@ -525,6 +525,8 @@ void AppletQuickItem::init()
QQmlProperty p(this, "Layout.minimumWidth", QtQml::qmlContext(d->qmlObject->rootObject()));
d->compactRepresentationCheckTimer.start();
qmlObject()->engine()->rootContext()->setBaseUrl(qmlObject()->source());
qmlObject()->engine()->setContextForObject(this, qmlObject()->engine()->rootContext());
}