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:
hjk
2014-11-05 10:30:51 +01:00
parent a12344ce61
commit bb81a61814
4 changed files with 22 additions and 9 deletions

View File

@@ -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;