@@ -31,7 +31,7 @@ MirSurfaceItem::MirSurfaceItem(const QString& name,
31 MirSurfaceItem::Type type,
31 MirSurfaceItem::Type type,
32 MirSurfaceItem::State state,
32 MirSurfaceItem::State state,
33 const QUrl& screenshot,
33 const QUrl& screenshot,
34− const QString &qmlFilePath,
34+ const QUrl& qmlFileUrl,
35 QQuickItem *parent)
35 QQuickItem *parent)
36 : QQuickItem(parent)
36 : QQuickItem(parent)
37 , m_session(nullptr)
37 , m_session(nullptr)
@@ -62,15 +62,7 @@ MirSurfaceItem::MirSurfaceItem(const QString& name,
62 QQuickView *quickView =
62 QQuickView *quickView =
63 qobject_cast<QQuickView*>(QGuiApplication::topLevelWindows()[0]);
63 qobject_cast<QQuickView*>(QGuiApplication::topLevelWindows()[0]);
65− QString qmlComponentFilePath;
66− if (!qmlFilePath.isEmpty()) {
67− qmlComponentFilePath.append(qmlFilePath);
69− qmlComponentFilePath = QString("%1/Unity/Application/MirSurfaceItem.qml")
70− .arg(mockPluginsDir());
73− m_qmlContentComponent = new QQmlComponent(quickView->engine(), qmlComponentFilePath);
65+ m_qmlContentComponent = new QQmlComponent(quickView->engine(), qmlFileUrl);
75 switch (m_qmlContentComponent->status()) {
67 switch (m_qmlContentComponent->status()) {
76 case QQmlComponent::Ready:
68 case QQmlComponent::Ready: