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