Commit 01a5f9cf authored by Tobias Hunger's avatar Tobias Hunger

MacroExpander: Allow "comment" expansion

%{#: is now treated as a comment and expands to an empty string }

This is useful to add comments about copyright, etc. into the
wizard templates.

Change-Id: I6e25c724edfa4b865d2d4f74b0f4900982d9ea47
Reviewed-by: default avatarAlessandro Portale <>
parent 33a12200
......@@ -211,6 +211,8 @@ bool CorePlugin::initialize(const QStringList &arguments, QString *errorMessage)
expander->registerPrefix("CurrentTime:", tr("The current time (QTime formatstring)."),
[](const QString &fmt) { return QTime::currentTime().toString(fmt); });
expander->registerPrefix("#:", tr("A comment."), [](const QString &) { return QStringLiteral(""); });
// Make sure all wizards are there when the user might access the keyboard shortcuts:
connect(ICore::instance(), &ICore::optionsDialogRequested, []() { IWizardFactory::allWizardFactories(); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment