Commit 05747d7d authored by Jarek Kobus's avatar Jarek Kobus

Don't shout in text messages

Change-Id: Ie8d2c6761c87b358f0bc8691e529ba8144e267a4
Reviewed-by: Riitta-Leena Miettinen's avatarLeena Miettinen <riitta-leena.miettinen@qt.io>
parent d771ba89
......@@ -1104,7 +1104,7 @@ void PropertiesView::MView::onClassMembersStatusChanged(bool valid)
if (valid)
m_classMembersStatusLabel->clear();
else
m_classMembersStatusLabel->setText(tr("<font color=red>Invalid syntax!</font>"));
m_classMembersStatusLabel->setText(tr("<font color=red>Invalid syntax.</font>"));
}
void PropertiesView::MView::onParseClassMembers()
......
......@@ -83,10 +83,10 @@ static QString socketStateToString(QAbstractSocket::SocketState state)
return QmlDebugConnection::tr("Network connection closing");
case QAbstractSocket::BoundState:
return QmlDebugConnection::tr("Socket state changed to BoundState. "
"This should not happen!");
"This should not happen.");
case QAbstractSocket::ListeningState:
return QmlDebugConnection::tr("Socket state changed to ListeningState. "
"This should not happen!");
"This should not happen.");
default:
return QmlDebugConnection::tr("Unknown state %1").arg(state);
}
......
......@@ -342,7 +342,7 @@ bool SqliteStatement::checkForStepError(int resultCode) const
case SQLITE_CONSTRAINT: throwException("SqliteStatement::stepStatement: contraint prevent insert or update!");
}
throwException("SqliteStatement::stepStatement: unknown error has happen!");
throwException("SqliteStatement::stepStatement: unknown error has happened");
Q_UNREACHABLE();
}
......@@ -356,7 +356,7 @@ void SqliteStatement::checkForPrepareError(int resultCode) const
case SQLITE_MISUSE: throwException("SqliteStatement::prepareStatement: was called inappropriately!");
}
throwException("SqliteStatement::prepareStatement: unknown error has happen!");
throwException("SqliteStatement::prepareStatement: unknown error has happened");
}
void SqliteStatement::setIfIsReadyToFetchValues(int resultCode) const
......
......@@ -539,7 +539,7 @@ void BuildDirManager::cmakeFinished(int code, QProcess::ExitStatus status)
QString msg;
if (status != QProcess::NormalExit)
msg = tr("*** cmake process crashed!");
msg = tr("*** cmake process crashed.");
else if (code != 0)
msg = tr("*** cmake process exited with exit code %1.").arg(code);
......
......@@ -252,7 +252,7 @@ bool QbsProject::ensureWriteableQbsFile(const QString &file)
bool makeWritable = QFile::setPermissions(file, fi.permissions() | QFile::WriteUser);
if (!makeWritable) {
QMessageBox::warning(ICore::mainWindow(),
tr("Failed!"),
tr("Failed"),
tr("Could not write project file %1.").arg(file));
return false;
}
......
......@@ -401,7 +401,7 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunControl *runControl)
"qthelp://org.qt-project.qtcreator/doc/creator-debugging-qml.html");
case QMessageBox::Cancel:
// The actual error message has already been logged.
logState(tr("Failed to connect!"));
logState(tr("Failed to connect."));
runControl->cancelProcess();
break;
}
......
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