ProjectExplorer: Add punctuation to ends of messages

Change-Id: Idaa794204b87b5a139203a6d183935425ecfd67e
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Leena Miettinen
2017-07-28 10:19:05 +02:00
committed by Tobias Hunger
parent 8f9e537dcf
commit 97a6dc2c36
2 changed files with 6 additions and 6 deletions

View File

@@ -1452,7 +1452,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
}); });
expander->registerFileVariables("CurrentRun:Executable", expander->registerFileVariables("CurrentRun:Executable",
tr("The currently active run configuration's executable (if applicable)"), tr("The currently active run configuration's executable (if applicable)."),
[this]() -> QString { [this]() -> QString {
if (Target *target = activeTarget()) { if (Target *target = activeTarget()) {
if (RunConfiguration *rc = target->activeRunConfiguration()) { if (RunConfiguration *rc = target->activeRunConfiguration()) {
@@ -1811,7 +1811,7 @@ ProjectExplorerPlugin::OpenProjectResult ProjectExplorerPlugin::openProjects(con
if (ProjectManager::canOpenProjectForMimeType(mt)) { if (ProjectManager::canOpenProjectForMimeType(mt)) {
if (!QFileInfo(filePath).isFile()) { if (!QFileInfo(filePath).isFile()) {
appendError(errorString, appendError(errorString,
tr("Failed opening project \"%1\": Project is not a file").arg(fileName)); tr("Failed opening project \"%1\": Project is not a file.").arg(fileName));
} else if (Project *pro = ProjectManager::openProject(mt, Utils::FileName::fromString(filePath))) { } else if (Project *pro = ProjectManager::openProject(mt, Utils::FileName::fromString(filePath))) {
QObject::connect(pro, &Project::parsingFinished, [pro]() { QObject::connect(pro, &Project::parsingFinished, [pro]() {
emit SessionManager::instance()->projectFinishedParsing(pro); emit SessionManager::instance()->projectFinishedParsing(pro);

View File

@@ -936,7 +936,7 @@ void RunControlPrivate::onWorkerStarted(RunWorker *worker)
continueStart(); continueStart();
return; return;
} }
showError(tr("Unexpected run control state %1 when worker %2 started") showError(tr("Unexpected run control state %1 when worker %2 started.")
.arg(stateName(state)) .arg(stateName(state))
.arg(worker->d->id)); .arg(worker->d->id));
} }
@@ -1467,11 +1467,11 @@ bool RunWorkerPrivate::canStart() const
void RunWorkerPrivate::timerEvent(QTimerEvent *ev) void RunWorkerPrivate::timerEvent(QTimerEvent *ev)
{ {
if (ev->timerId() == startWatchdogTimerId) { if (ev->timerId() == startWatchdogTimerId) {
q->reportFailure(tr("Worker start timed out")); q->reportFailure(tr("Worker start timed out."));
return; return;
} }
if (ev->timerId() == stopWatchdogTimerId) { if (ev->timerId() == stopWatchdogTimerId) {
q->reportFailure(tr("Worker stop timed out")); q->reportFailure(tr("Worker stop timed out."));
return; return;
} }
} }
@@ -1610,7 +1610,7 @@ QString RunWorker::userMessageForProcessError(QProcess::ProcessError error, cons
"permissions to invoke the program.").arg(program); "permissions to invoke the program.").arg(program);
break; break;
case QProcess::Crashed: case QProcess::Crashed:
msg = tr("The process was ended forcefully"); msg = tr("The process was ended forcefully.");
break; break;
case QProcess::Timedout: case QProcess::Timedout:
// "The last waitFor...() function timed out. " // "The last waitFor...() function timed out. "