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