forked from qt-creator/qt-creator
refactor VariableManager
make it provide a macroExpander() instead of a resolve() function. this detaches the actual variable management from the string manipulation.
This commit is contained in:
@@ -39,6 +39,10 @@ QT_BEGIN_NAMESPACE
|
||||
class QFileInfo;
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Utils {
|
||||
class AbstractMacroExpander;
|
||||
}
|
||||
|
||||
namespace Core {
|
||||
class VariableManagerPrivate;
|
||||
|
||||
@@ -58,7 +62,7 @@ public:
|
||||
QString value(const QString &variable) const;
|
||||
QString value(const QString &variable, const QString &defaultValue) const;
|
||||
bool remove(const QString &variable);
|
||||
QString resolve(const QString &stringWithVariables) const;
|
||||
Utils::AbstractMacroExpander *macroExpander();
|
||||
|
||||
private:
|
||||
QScopedPointer<VariableManagerPrivate> d;
|
||||
|
||||
Reference in New Issue
Block a user