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:
@@ -70,6 +70,9 @@ public:
|
||||
QList<QByteArray> variables();
|
||||
QString variableDescription(const QByteArray &variable);
|
||||
|
||||
QString displayName() const;
|
||||
void setDisplayName(const QString &displayName);
|
||||
|
||||
private:
|
||||
MacroExpander(const MacroExpander &) Q_DECL_EQ_DELETE;
|
||||
void operator=(const MacroExpander &) Q_DECL_EQ_DELETE;
|
||||
@@ -77,6 +80,8 @@ private:
|
||||
Internal::MacroExpanderPrivate *d;
|
||||
};
|
||||
|
||||
QTCREATOR_UTILS_EXPORT MacroExpander *globalMacroExpander();
|
||||
|
||||
} // namespace Utils
|
||||
|
||||
#endif // UTILS_MACROEXPANDER_H
|
||||
|
||||
Reference in New Issue
Block a user