forked from qt-creator/qt-creator
VariableChooser: Rework
Allow multiple expanders to be registered for lineedits, e.g. a local and the global ones, and actually show them. Use a tree view in the chooser for somewhat more structured display. Change-Id: I769f92144e5249f45e54381de52aa6973eb20118 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
#include "kitinformation.h"
|
||||
#include "projectexplorerconstants.h"
|
||||
|
||||
#include <coreplugin/variablemanager.h>
|
||||
#include <utils/macroexpander.h>
|
||||
#include <ssh/sshconnection.h>
|
||||
|
||||
using namespace ProjectExplorer;
|
||||
@@ -99,7 +99,7 @@ bool ProjectMacroExpander::resolveMacro(const QString &name, QString *ret)
|
||||
{
|
||||
bool found = resolveProjectMacro(name, ret);
|
||||
if (!found) {
|
||||
QString result = Core::globalMacroExpander()->value(name.toUtf8(), &found);
|
||||
QString result = Utils::globalMacroExpander()->value(name.toUtf8(), &found);
|
||||
if (ret)
|
||||
*ret = result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user