support qml file selectors
This commit is contained in:
parent
24702a5353
commit
c79118e907
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user