@@ -19,6 +19,7 @@
19#include <QtTest>
19#include <QtTest>
20#include <QtQuick/QQuickView>
20#include <QtQuick/QQuickView>
21#include <QtQuick/QQuickItem>
21#include <QtQuick/QQuickItem>
23class ScreenGrabberTest: public QObject
24class ScreenGrabberTest: public QObject
@@ -29,6 +30,7 @@ private Q_SLOTS:
29 void initTestCase()
30 void initTestCase()
31 m_view = new QQuickView();
32 m_view = new QQuickView();
33+ m_view->engine()->addImportPath(BUILT_PLUGINS_DIR);
32 m_view->setSource(QUrl::fromLocalFile(CURRENT_SOURCE_DIR "/grabber.qml"));
34 m_view->setSource(QUrl::fromLocalFile(CURRENT_SOURCE_DIR "/grabber.qml"));
33 m_grabber = dynamic_cast<ScreenGrabber*>(m_view->rootObject()->property("grabber").value<QObject*>());
35 m_grabber = dynamic_cast<ScreenGrabber*>(m_view->rootObject()->property("grabber").value<QObject*>());
34 QVERIFY(m_grabber);
36 QVERIFY(m_grabber);