Commit f23c2286 authored by Lasse Holmstedt's avatar Lasse Holmstedt
Browse files

QML Debugger: OS X support for detecting qml viewer/observer

parent 962a9eb4
...@@ -331,7 +331,11 @@ void DebuggerRunControl::createEngine(const DebuggerStartParameters &sp) ...@@ -331,7 +331,11 @@ void DebuggerRunControl::createEngine(const DebuggerStartParameters &sp)
QString errorMessage; QString errorMessage;
QString settingsIdHint; QString settingsIdHint;
if (sp.executable.endsWith(_("qmlviewer")) || sp.executable.endsWith(_("qmlobserver"))) bool isQmlExecutable = sp.executable.endsWith(_("qmlviewer")) || sp.executable.endsWith(_("qmlobserver"));
#ifdef Q_OS_MAC
isQmlExecutable = sp.executable.endsWith(_("")) || sp.executable.endsWith(_(""));
if (isQmlExecutable)
engineType = QmlEngineType; engineType = QmlEngineType;
else if (sp.executable.endsWith(_(".js"))) else if (sp.executable.endsWith(_(".js")))
engineType = ScriptEngineType; engineType = ScriptEngineType;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment