UI text: Fix spacing in multi-line messages

You need an empty space at the end of a line (before quotes),
but no empty space after \n.

Task-number: QTCREATORBUG-28334
Change-Id: I192836cb10b819a359778879c64e6b80aaa059f2
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Leena Miettinen
2022-10-19 18:39:25 +02:00
parent 3ac5051af9
commit b9e45d7b30
7 changed files with 9 additions and 9 deletions

View File

@@ -272,7 +272,7 @@ bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage)
if (QmlProject::isQtDesignStudio()) { if (QmlProject::isQtDesignStudio()) {
Core::ActionContainer *menu = Core::ActionManager::actionContainer( Core::ActionContainer *menu = Core::ActionManager::actionContainer(
ProjectExplorer::Constants::M_FILECONTEXT); ProjectExplorer::Constants::M_FILECONTEXT);
QAction *mainfileAction = new QAction(tr("Set as main .qml file"), this); QAction *mainfileAction = new QAction(tr("Set as Main .qml File"), this);
mainfileAction->setEnabled(false); mainfileAction->setEnabled(false);
connect(mainfileAction, &QAction::triggered, this, []() { connect(mainfileAction, &QAction::triggered, this, []() {
@@ -315,7 +315,7 @@ bool QmlProjectPlugin::initialize(const QStringList &, QString *errorMessage)
!= fileNode->filePath()); != fileNode->filePath());
}); });
QAction *mainUifileAction = new QAction(tr("Set as main .ui.qml file"), this); QAction *mainUifileAction = new QAction(tr("Set as Main .ui.qml File"), this);
mainUifileAction->setEnabled(false); mainUifileAction->setEnabled(false);
connect(mainUifileAction, &QAction::triggered, this, []() { connect(mainUifileAction, &QAction::triggered, this, []() {