forked from qt-creator/qt-creator
Provide a facility to hide macros in the chooser
... and use it for the Current* fallbacks in the Kit expander. Change-Id: I1d346aa56647f6d3030bd4384eb89e2a27db6418 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -103,13 +103,16 @@ public:
|
||||
// without relying on the currentKit() discovery process there.
|
||||
m_macroExpander.registerVariable(Constants::VAR_CURRENTKIT_NAME,
|
||||
tr("The name of the currently active kit."),
|
||||
[kit] { return kit->displayName(); });
|
||||
[kit] { return kit->displayName(); },
|
||||
false);
|
||||
m_macroExpander.registerVariable(Constants::VAR_CURRENTKIT_FILESYSTEMNAME,
|
||||
tr("The name of the currently active kit in a filesystem friendly version."),
|
||||
[kit] { return kit->fileSystemFriendlyName(); });
|
||||
[kit] { return kit->fileSystemFriendlyName(); },
|
||||
false);
|
||||
m_macroExpander.registerVariable(Constants::VAR_CURRENTKIT_ID,
|
||||
tr("The id of the currently active kit."),
|
||||
[kit] { return kit->id().toString(); });
|
||||
[kit] { return kit->id().toString(); },
|
||||
false);
|
||||
}
|
||||
|
||||
QString m_unexpandedDisplayName;
|
||||
|
||||
Reference in New Issue
Block a user