forked from qt-creator/qt-creator
ICore: Change some path API to use FilePath
Change-Id: Id841d6177206a021c9e606ce560b47d1ae6e52b9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -225,7 +225,7 @@ bool CorePlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
expander->registerVariable("IDE:ResourcePath",
|
||||
tr("The directory where %1 finds its pre-installed resources.")
|
||||
.arg(Constants::IDE_DISPLAY_NAME),
|
||||
[]() { return ICore::resourcePath(); });
|
||||
[]() { return ICore::resourcePath().toString(); });
|
||||
expander->registerPrefix("CurrentDate:", tr("The current date (QDate formatstring)."),
|
||||
[](const QString &fmt) { return QDate::currentDate().toString(fmt); });
|
||||
expander->registerPrefix("CurrentTime:", tr("The current time (QTime formatstring)."),
|
||||
|
||||
Reference in New Issue
Block a user