Skip to content
Snippets Groups Projects
Commit 08641790 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Qt: Add qmakeExecutable to CurrentKit macro


Change-Id: I6fd0bf19207279dc071faa023fa9fb3b53a6ea17
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 49525a11
No related branches found
No related tags found
No related merge requests found
...@@ -146,6 +146,11 @@ void QtKitInformation::addToMacroExpander(Kit *kit, MacroExpander *expander) con ...@@ -146,6 +146,11 @@ void QtKitInformation::addToMacroExpander(Kit *kit, MacroExpander *expander) con
BaseQtVersion *version = qtVersion(kit); BaseQtVersion *version = qtVersion(kit);
return version ? version->displayName() : tr("unknown"); return version ? version->displayName() : tr("unknown");
}); });
expander->registerVariable("Qt:qmakeExecutable", tr("Path to the qmake executable"),
[this, kit]() -> QString {
BaseQtVersion *version = qtVersion(kit);
return version ? version->qmakeCommand().toString() : QString();
});
} }
Core::Id QtKitInformation::id() Core::Id QtKitInformation::id()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment