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:
Marco Martin 2010-10-16 18:55:55 +00:00
parent 6ad3371e9a
commit 6907acbd11

View File

@ -29,6 +29,8 @@
#include <QTimer>
#include <kdebug.h>
#include <kglobal.h>
#include <kstandarddirs.h>
namespace Plasma
{
@ -90,6 +92,10 @@ void DeclarativeWidgetPrivate::execute(const QString &fileName)
delete component;
engine = new QDeclarativeEngine(q);
foreach(const QString &importPath, KGlobal::dirs()->findDirs("module", "imports")) {
engine->addImportPath(importPath);
}
component = new QDeclarativeComponent(engine, fileName, q);
if (delay) {