use imports from the KDE plugin dir, since we can't relay on plasma imports being installed on the systemwide qt imports dir
svn path=/trunk/KDE/kdelibs/; revision=1186518
This commit is contained in:
parent
6ad3371e9a
commit
6907acbd11
@ -29,6 +29,8 @@
|
|||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
#include <kdebug.h>
|
#include <kdebug.h>
|
||||||
|
#include <kglobal.h>
|
||||||
|
#include <kstandarddirs.h>
|
||||||
|
|
||||||
namespace Plasma
|
namespace Plasma
|
||||||
{
|
{
|
||||||
@ -90,6 +92,10 @@ void DeclarativeWidgetPrivate::execute(const QString &fileName)
|
|||||||
delete component;
|
delete component;
|
||||||
|
|
||||||
engine = new QDeclarativeEngine(q);
|
engine = new QDeclarativeEngine(q);
|
||||||
|
foreach(const QString &importPath, KGlobal::dirs()->findDirs("module", "imports")) {
|
||||||
|
engine->addImportPath(importPath);
|
||||||
|
}
|
||||||
|
|
||||||
component = new QDeclarativeComponent(engine, fileName, q);
|
component = new QDeclarativeComponent(engine, fileName, q);
|
||||||
|
|
||||||
if (delay) {
|
if (delay) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user