diff --git a/widgets/declarativewidget.cpp b/widgets/declarativewidget.cpp index f0e20cb70..4710b97d0 100644 --- a/widgets/declarativewidget.cpp +++ b/widgets/declarativewidget.cpp @@ -29,6 +29,8 @@ #include #include +#include +#include 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) {