@@ -24,6 +24,8 @@
2424#include "fake_scopes.h"
2525#include "fake_settingsmodel.h"
2626
27+#include <paths.h> // from unity8/include
28+
2729Scope::Scope(Scopes* parent) : Scope("MockScope5", "Mock Scope", false, parent)
2830{
2931}
@@ -249,11 +251,11 @@ QVariantMap Scope::customizations() const
249251 m["foreground-color"] = "blue";
250252 m["page-header"] = h;
251253 } else if (m_id == "MockScope4") {
252− h["navigation-background"] = QUrl("../../../tests/qmltests/Dash/artwork/background.png");
254+ h["navigation-background"] = QUrl(sourceDirectory() + "tests/qmltests/Dash/artwork/background.png");
253255 m["page-header"] = h;
254256 } else if (m_id == "MockScope5") {
255257 h["background"] = "gradient:///lightgrey/grey";
256− h["logo"] = QUrl("../../../tests/qmltests/Dash/tst_PageHeader/logo-ubuntu-orange.svg");
258+ h["logo"] = QUrl(sourceDirectory() + "tests/qmltests/Dash/tst_PageHeader/logo-ubuntu-orange.svg");
257259 h["divider-color"] = "red";
258260 h["navigation-background"] = "color:///black";
259261 m["page-header"] = h;