From 1e2939916e88fc81d262f279f4a5c09ef298d39e Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Fri, 6 Nov 2020 16:55:13 +0100 Subject: [PATCH] Qt Quick Designer: Fix UI text Fix capitalization, punctuation, style, and typos. Task-number: QTCREATORBUG-24873 Change-Id: Iecf7781d604b799563457cf000ab5f48e06b251c Reviewed-by: Marco Bubke Reviewed-by: Thomas Hartmann --- .../propertyEditorQmlSources/QtQuick/ListViewSpecifics.qml | 2 +- .../components/componentcore/designeractionmanager.cpp | 4 ++-- .../components/listmodeleditor/listmodeleditordialog.cpp | 4 ++-- .../qmldesigner/components/navigator/navigatortreemodel.cpp | 2 +- .../qmldesigner/components/stateseditor/stateseditorview.cpp | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ListViewSpecifics.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ListViewSpecifics.qml index 584a284fcb3..98c8be0c4cb 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ListViewSpecifics.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ListViewSpecifics.qml @@ -213,7 +213,7 @@ Column { Label { text: qsTr("Resize duration") - tooltip: qsTr("Resizes animation duration of the highlight delegate.") + tooltip: qsTr("Resize animation duration of the highlight delegate.") disabledState: !backendValues.highlightResizeDuration.isAvailable } diff --git a/src/plugins/qmldesigner/components/componentcore/designeractionmanager.cpp b/src/plugins/qmldesigner/components/componentcore/designeractionmanager.cpp index c3d3b1ceaa0..a9a8f8c64bc 100644 --- a/src/plugins/qmldesigner/components/componentcore/designeractionmanager.cpp +++ b/src/plugins/qmldesigner/components/componentcore/designeractionmanager.cpp @@ -462,14 +462,14 @@ public: } catch (const DocumentError &) { QMessageBox::warning( Core::ICore::mainWindow(), - QCoreApplication::translate("DesignerActionManager", "Document has errors"), + QCoreApplication::translate("DesignerActionManager", "Document Has Errors"), QCoreApplication::translate("DesignerActionManager", "The document which contains the list model " "contains errors. So we cannot edit it.")); } catch (const RewritingException &) { QMessageBox::warning( Core::ICore::mainWindow(), - QCoreApplication::translate("DesignerActionManager", "Document cannot be written"), + QCoreApplication::translate("DesignerActionManager", "Document Cannot Be Written"), QCoreApplication::translate("DesignerActionManager", "An error occurred during a write attemp.")); } diff --git a/src/plugins/qmldesigner/components/listmodeleditor/listmodeleditordialog.cpp b/src/plugins/qmldesigner/components/listmodeleditor/listmodeleditordialog.cpp index 107a0940ebc..0d3d0898be5 100644 --- a/src/plugins/qmldesigner/components/listmodeleditor/listmodeleditordialog.cpp +++ b/src/plugins/qmldesigner/components/listmodeleditor/listmodeleditordialog.cpp @@ -114,7 +114,7 @@ void ListModelEditorDialog::openColumnDialog() { bool ok; QString columnName = QInputDialog::getText( - this, tr("Add Property"), tr("Property Name:"), QLineEdit::Normal, "", &ok); + this, tr("Add Property"), tr("Property name:"), QLineEdit::Normal, "", &ok); if (ok && !columnName.isEmpty()) m_model->addColumn(columnName); } @@ -138,7 +138,7 @@ void ListModelEditorDialog::changeHeader(int column) bool ok; QString newPropertyName = QInputDialog::getText( - this, tr("Change Propertry"), tr("Column Name:"), QLineEdit::Normal, propertyName, &ok); + this, tr("Change Property"), tr("Column name:"), QLineEdit::Normal, propertyName, &ok); if (ok && !newPropertyName.isEmpty()) m_model->renameColumn(column, newPropertyName); diff --git a/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp b/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp index 1e8cbfa7630..65315b7bb89 100644 --- a/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp +++ b/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp @@ -262,7 +262,7 @@ QVariant NavigatorTreeModel::data(const QModelIndex &index, int role) const return modelNode.locked() ? Qt::Checked : Qt::Unchecked; else if (role == Qt::ToolTipRole && !modelNodeForIndex(index).isRootNode()) return tr("Toggles whether this item is locked.\n" - "Locked items can't be modified or selected."); + "Locked items cannot be modified or selected."); } return QVariant(); diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp index a8792ef2041..b777fbf4c25 100644 --- a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp +++ b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp @@ -120,7 +120,7 @@ void StatesEditorView::removeState(int nodeId) msgBox.setWindowTitle(tr("Remove State")); msgBox.setText(QString(tr("Removing this state will modify locked items.") + "

%1") .arg(detailedText)); - msgBox.setInformativeText(tr("Do you want to continue by removing the state?")); + msgBox.setInformativeText(tr("Continue by removing the state?")); msgBox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel); msgBox.setDefaultButton(QMessageBox::Ok);