summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/viewer/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/viewer/main.cpp b/tools/viewer/main.cpp
index 12abd3b..ba06346 100644
--- a/tools/viewer/main.cpp
+++ b/tools/viewer/main.cpp
@@ -265,6 +265,9 @@ int main(int argc, char *argv[])
QString extraImportPath2(QStringLiteral("%1/../../../../qml"));
engine.addImportPath(extraImportPath2.arg(QGuiApplication::applicationDirPath()));
#endif
+ // Add import path for running viewer without having to install it during development
+ QString extraImportPath3(QStringLiteral("%1/../qml"));
+ engine.addImportPath(extraImportPath3.arg(QGuiApplication::applicationDirPath()));
QQmlContext *ctx = engine.rootContext();
ctx->setContextProperty(QStringLiteral("_menuBackgroundColor"), QColor("#404244"));