@@ -31,7 +31,7 @@ MirSurfaceItem::MirSurfaceItem(const QString& name,
3131 MirSurfaceItem::Type type,
3232 MirSurfaceItem::State state,
3333 const QUrl& screenshot,
34− const QString &qmlFilePath,
34+ const QUrl& qmlFileUrl,
3535 QQuickItem *parent)
3636 : QQuickItem(parent)
3737 , m_session(nullptr)
@@ -62,15 +62,7 @@ MirSurfaceItem::MirSurfaceItem(const QString& name,
6262 QQuickView *quickView =
6363 qobject_cast<QQuickView*>(QGuiApplication::topLevelWindows()[0]);
6464
65− QString qmlComponentFilePath;
66− if (!qmlFilePath.isEmpty()) {
67− qmlComponentFilePath.append(qmlFilePath);
68− } else {
69− qmlComponentFilePath = QString("%1/Unity/Application/MirSurfaceItem.qml")
70− .arg(mockPluginsDir());
71− }
72−
73− m_qmlContentComponent = new QQmlComponent(quickView->engine(), qmlComponentFilePath);
65+ m_qmlContentComponent = new QQmlComponent(quickView->engine(), qmlFileUrl);
7466
7567 switch (m_qmlContentComponent->status()) {
7668 case QQmlComponent::Ready: