forked from qt-creator/qt-creator
Project explorer: fix UI text
Change-Id: Ica47a8c8e6a9b5b64c6ed5aa2a15d842803b8069 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Tobias Hunger
parent
b3f601d7b6
commit
c8d638c250
@@ -1313,14 +1313,14 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
|||||||
});
|
});
|
||||||
|
|
||||||
expander->registerVariable(Constants::VAR_CURRENTKIT_FILESYSTEMNAME,
|
expander->registerVariable(Constants::VAR_CURRENTKIT_FILESYSTEMNAME,
|
||||||
tr("The name of the currently active kit in a filesystem-friendly version."),
|
tr("The name of the currently active kit as a filesystem-friendly version."),
|
||||||
[]() -> QString {
|
[]() -> QString {
|
||||||
Kit *kit = currentKit();
|
Kit *kit = currentKit();
|
||||||
return kit ? kit->fileSystemFriendlyName() : QString();
|
return kit ? kit->fileSystemFriendlyName() : QString();
|
||||||
});
|
});
|
||||||
|
|
||||||
expander->registerVariable(Constants::VAR_CURRENTKIT_ID,
|
expander->registerVariable(Constants::VAR_CURRENTKIT_ID,
|
||||||
tr("The id of the currently active kit."),
|
tr("The ID of the currently active kit."),
|
||||||
[]() -> QString {
|
[]() -> QString {
|
||||||
Kit *kit = currentKit();
|
Kit *kit = currentKit();
|
||||||
return kit ? kit->id().toString() : QString();
|
return kit ? kit->id().toString() : QString();
|
||||||
@@ -3314,7 +3314,7 @@ void ProjectExplorerPlugin::renameFile(Node *node, const QString &newFilePath)
|
|||||||
QTimer::singleShot(0, [orgFilePath, newFilePath, projectFileName] {
|
QTimer::singleShot(0, [orgFilePath, newFilePath, projectFileName] {
|
||||||
int res = QMessageBox::question(ICore::mainWindow(),
|
int res = QMessageBox::question(ICore::mainWindow(),
|
||||||
tr("Project Editing Failed"),
|
tr("Project Editing Failed"),
|
||||||
tr("The project file %1 cannot be automatically changed\n\n"
|
tr("The project file %1 cannot be automatically changed.\n\n"
|
||||||
"Rename %2 to %3 anyway?")
|
"Rename %2 to %3 anyway?")
|
||||||
.arg(projectFileName)
|
.arg(projectFileName)
|
||||||
.arg(orgFilePath)
|
.arg(orgFilePath)
|
||||||
|
|||||||
Reference in New Issue
Block a user