@@ -24,6 +24,8 @@
24#include "fake_scopes.h"
24#include "fake_scopes.h"
25#include "fake_settingsmodel.h"
25#include "fake_settingsmodel.h"
27+#include <paths.h> // from unity8/include
27Scope::Scope(Scopes* parent) : Scope("MockScope5", "Mock Scope", false, parent)
29Scope::Scope(Scopes* parent) : Scope("MockScope5", "Mock Scope", false, parent)
@@ -249,11 +251,11 @@ QVariantMap Scope::customizations() const
249 m["foreground-color"] = "blue";
251 m["foreground-color"] = "blue";
250 m["page-header"] = h;
252 m["page-header"] = h;
251 } else if (m_id == "MockScope4") {
253 } 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");
253 m["page-header"] = h;
255 m["page-header"] = h;
254 } else if (m_id == "MockScope5") {
256 } else if (m_id == "MockScope5") {
255 h["background"] = "gradient:///lightgrey/grey";
257 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");
257 h["divider-color"] = "red";
259 h["divider-color"] = "red";
258 h["navigation-background"] = "color:///black";
260 h["navigation-background"] = "color:///black";
259 m["page-header"] = h;
261 m["page-header"] = h;