support qml file selectors

This commit is contained in:
Marco Martin 2019-11-25 18:21:09 +01:00
parent 24702a5353
commit c79118e907

View File

@ -27,6 +27,7 @@
#include <QQmlProperty>
#include <QQmlContext>
#include <QQuickWindow>
#include <QQmlFileSelector>
#include <QDebug>
@ -86,6 +87,7 @@ void AppletQuickItemPrivate::init()
PackageUrlInterceptor *interceptor = new PackageUrlInterceptor(qmlObject->engine(), KPackage::Package());
interceptor->setForcePlasmaStyle(true);
qmlObject->engine()->setUrlInterceptor(interceptor);
new QQmlFileSelector(qmlObject->engine(), qmlObject->engine());
}
}