diff options
author | Leena Miettinen <[email protected]> | 2020-03-10 16:45:52 +0100 |
---|---|---|
committer | Leena Miettinen <[email protected]> | 2020-03-11 08:38:21 +0000 |
commit | 1f26c6d1b979fec024948b2cae78252f388e3ac8 (patch) | |
tree | 67500e6b77357f532aea9602e5ed9af48368d0b7 | |
parent | c0704f51b22c9d447ad8c25a0c1a9d772892d265 (diff) |
Qt Quick Designer: Fix UI text punctuation and capitalization
According to the guidelines in
https://doc.qt.io/qtcreator-extending/qtcreator-ui-text.html
Task-number: QTCREATORBUG-23683
Change-Id: Id1f484855396c16d629b5743bef9710e84ba2cd6
Reviewed-by: Thomas Hartmann <[email protected]>
7 files changed, 27 insertions, 27 deletions
diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml index a353d9fec53..2a05bb6622a 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/ItemPane.qml @@ -430,21 +430,21 @@ Rectangle { spacing: -StudioTheme.Values.border AbstractButton { buttonIcon: StudioTheme.Constants.alignLeft - tooltip: qsTr("Align objects to left edge") + tooltip: qsTr("Align left edges.") onClicked: alignDistribute.alignObjects(AlignDistribute.Left, alignToComboBox.currentEnum, keyObjectComboBox.currentText) } AbstractButton { buttonIcon: StudioTheme.Constants.alignCenterHorizontal - tooltip: qsTr("Align objects horizontal center") + tooltip: qsTr("Align horizontal centers.") onClicked: alignDistribute.alignObjects(AlignDistribute.CenterH, alignToComboBox.currentEnum, keyObjectComboBox.currentText) } AbstractButton { buttonIcon: StudioTheme.Constants.alignRight - tooltip: qsTr("Align objects to right edge") + tooltip: qsTr("Align right edges.") onClicked: alignDistribute.alignObjects(AlignDistribute.Right, alignToComboBox.currentEnum, keyObjectComboBox.currentText) @@ -455,21 +455,21 @@ Rectangle { spacing: -StudioTheme.Values.border AbstractButton { buttonIcon: StudioTheme.Constants.alignTop - tooltip: qsTr("Align objects to top edge") + tooltip: qsTr("Align top edges.") onClicked: alignDistribute.alignObjects(AlignDistribute.Top, alignToComboBox.currentEnum, keyObjectComboBox.currentText) } AbstractButton { buttonIcon: StudioTheme.Constants.alignCenterVertical - tooltip: qsTr("Align objects vertical center") + tooltip: qsTr("Align vertical centers.") onClicked: alignDistribute.alignObjects(AlignDistribute.CenterV, alignToComboBox.currentEnum, keyObjectComboBox.currentText) } AbstractButton { buttonIcon: StudioTheme.Constants.alignBottom - tooltip: qsTr("Align objects to bottom edge") + tooltip: qsTr("Align bottom edges.") onClicked: alignDistribute.alignObjects(AlignDistribute.Bottom, alignToComboBox.currentEnum, keyObjectComboBox.currentText) @@ -486,21 +486,21 @@ Rectangle { spacing: -StudioTheme.Values.border AbstractButton { buttonIcon: StudioTheme.Constants.distributeLeft - tooltip: qsTr("Distribute objects left edge") + tooltip: qsTr("Distribute left edges.") onClicked: alignDistribute.distributeObjects(AlignDistribute.Left, alignToComboBox.currentEnum, keyObjectComboBox.currentText) } AbstractButton { buttonIcon: StudioTheme.Constants.distributeCenterHorizontal - tooltip: qsTr("Distribute objects horizontal center") + tooltip: qsTr("Distribute horizontal centers.") onClicked: alignDistribute.distributeObjects(AlignDistribute.CenterH, alignToComboBox.currentEnum, keyObjectComboBox.currentText) } AbstractButton { buttonIcon: StudioTheme.Constants.distributeRight - tooltip: qsTr("Distribute objects right edge") + tooltip: qsTr("Distribute right edges.") onClicked: alignDistribute.distributeObjects(AlignDistribute.Right, alignToComboBox.currentEnum, keyObjectComboBox.currentText) @@ -511,21 +511,21 @@ Rectangle { spacing: -StudioTheme.Values.border AbstractButton { buttonIcon: StudioTheme.Constants.distributeTop - tooltip: qsTr("Distribute objects top edge") + tooltip: qsTr("Distribute top edges.") onClicked: alignDistribute.distributeObjects(AlignDistribute.Top, alignToComboBox.currentEnum, keyObjectComboBox.currentText) } AbstractButton { buttonIcon: StudioTheme.Constants.distributeCenterVertical - tooltip: qsTr("Distribute objects vertical center") + tooltip: qsTr("Distribute vertical centers.") onClicked: alignDistribute.distributeObjects(AlignDistribute.CenterV, alignToComboBox.currentEnum, keyObjectComboBox.currentText) } AbstractButton { buttonIcon: StudioTheme.Constants.distributeBottom - tooltip: qsTr("Distribute objects bottom edge") + tooltip: qsTr("Distribute bottom edges.") onClicked: alignDistribute.distributeObjects(AlignDistribute.Bottom, alignToComboBox.currentEnum, keyObjectComboBox.currentText) @@ -542,7 +542,7 @@ Rectangle { spacing: -StudioTheme.Values.border AbstractButton { buttonIcon: StudioTheme.Constants.distributeSpacingHorizontal - tooltip: qsTr("Distribute spacing horizontal") + tooltip: qsTr("Distribute spacing horizontally.") onClicked: alignDistribute.distributeSpacing(AlignDistribute.X, alignToComboBox.currentEnum, keyObjectComboBox.currentText, @@ -551,7 +551,7 @@ Rectangle { } AbstractButton { buttonIcon: StudioTheme.Constants.distributeSpacingVertical - tooltip: qsTr("Distribute spacing vertical") + tooltip: qsTr("Distribute spacing vertically.") onClicked: alignDistribute.distributeSpacing(AlignDistribute.Y, alignToComboBox.currentEnum, keyObjectComboBox.currentText, diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSection.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSection.qml index 0a86f113583..cfd972b0854 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSection.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/QtQuick/TextInputSection.qml @@ -103,7 +103,7 @@ Section { Label { visible: !textInputSection.isTextInput text: qsTr("Text margin") - tooltip: qsTr("Sets the margin, in pixels, around the text in the TextEdit..") + tooltip: qsTr("Sets the margin, in pixels, around the text in the Text Edit.") } SpinBox { visible: !textInputSection.isTextInput diff --git a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorCheckButton.qml b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorCheckButton.qml index 9751c7c777a..f45e8661031 100644 --- a/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorCheckButton.qml +++ b/share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorCheckButton.qml @@ -81,6 +81,6 @@ Item { hoverEnabled: true anchors.fill: parent anchors.leftMargin: -arrowImage.width - tooltip: qsTr("Toggle color picker view") + tooltip: qsTr("Toggle color picker view.") } } diff --git a/src/plugins/qmldesigner/components/edit3d/edit3dview.cpp b/src/plugins/qmldesigner/components/edit3d/edit3dview.cpp index d3dc95b4e57..fa2781a3f07 100644 --- a/src/plugins/qmldesigner/components/edit3d/edit3dview.cpp +++ b/src/plugins/qmldesigner/components/edit3d/edit3dview.cpp @@ -154,7 +154,7 @@ void Edit3DView::createEdit3DActions() m_selectionModeAction = new Edit3DAction( "Edit3DSelectionModeToggle", View3DActionCommand::SelectionModeToggle, - QCoreApplication::translate("SelectionModeToggleAction", "Toggle Group / Single Selection Mode"), + QCoreApplication::translate("SelectionModeToggleAction", "Toggle Group/Single Selection Mode"), QKeySequence(Qt::Key_Q), true, false, Icons::EDIT3D_SELECTION_MODE_OFF.icon(), Icons::EDIT3D_SELECTION_MODE_ON.icon()); @@ -181,27 +181,27 @@ void Edit3DView::createEdit3DActions() m_fitAction = new Edit3DAction( "Edit3DFitToView", View3DActionCommand::FitToView, - QCoreApplication::translate("FitToViewAction", "Fit Selected Object To View"), + QCoreApplication::translate("FitToViewAction", "Fit Selected Object to View"), QKeySequence(Qt::Key_F), false, false, Icons::EDIT3D_FIT_SELECTED_OFF.icon(), {}); m_cameraModeAction = new Edit3DAction( "Edit3DCameraToggle", View3DActionCommand::CameraToggle, - QCoreApplication::translate("CameraToggleAction", "Toggle Perspective / Orthographic Edit Camera"), + QCoreApplication::translate("CameraToggleAction", "Toggle Perspective/Orthographic Edit Camera"), QKeySequence(Qt::Key_T), true, false, Icons::EDIT3D_EDIT_CAMERA_OFF.icon(), Icons::EDIT3D_EDIT_CAMERA_ON.icon()); m_orientationModeAction = new Edit3DAction( "Edit3DOrientationToggle", View3DActionCommand::OrientationToggle, - QCoreApplication::translate("OrientationToggleAction", "Toggle Global / Local Orientation"), + QCoreApplication::translate("OrientationToggleAction", "Toggle Global/Local Orientation"), QKeySequence(Qt::Key_Y), true, false, Icons::EDIT3D_ORIENTATION_OFF.icon(), Icons::EDIT3D_ORIENTATION_ON.icon()); m_editLightAction = new Edit3DAction( "Edit3DEditLightToggle", View3DActionCommand::EditLightToggle, - QCoreApplication::translate("EditLightToggleAction", "Toggle Edit Light On / Off"), + QCoreApplication::translate("EditLightToggleAction", "Toggle Edit Light On/Off"), QKeySequence(Qt::Key_U), true, false, Icons::EDIT3D_LIGHT_OFF.icon(), Icons::EDIT3D_LIGHT_ON.icon()); diff --git a/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp b/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp index f13de043258..7cdae618b74 100644 --- a/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp +++ b/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp @@ -85,13 +85,13 @@ FormEditorWidget::FormEditorWidget(FormEditorView *view) : m_noSnappingAction->setIcon(Icons::NO_SNAPPING.icon()); registerActionAsCommand(m_noSnappingAction, Constants::FORMEDITOR_NO_SNAPPING, QKeySequence(Qt::Key_T)); - m_snappingAndAnchoringAction = layoutActionGroup->addAction(tr("Snap to parent or sibling items and generate anchors")); + m_snappingAndAnchoringAction = layoutActionGroup->addAction(tr("Snap to parent or sibling items and generate anchors.")); m_snappingAndAnchoringAction->setCheckable(true); m_snappingAndAnchoringAction->setChecked(true); m_snappingAndAnchoringAction->setIcon(Icons::NO_SNAPPING_AND_ANCHORING.icon()); registerActionAsCommand(m_snappingAndAnchoringAction, Constants::FORMEDITOR_NO_SNAPPING_AND_ANCHORING, QKeySequence(Qt::Key_W)); - m_snappingAction = layoutActionGroup->addAction(tr("Snap to parent or sibling items but do not generate anchors")); + m_snappingAction = layoutActionGroup->addAction(tr("Snap to parent or sibling items but do not generate anchors.")); m_snappingAction->setCheckable(true); m_snappingAction->setChecked(true); m_snappingAction->setIcon(Icons::SNAPPING.icon()); @@ -106,7 +106,7 @@ FormEditorWidget::FormEditorWidget(FormEditorView *view) : upperActions.append(separatorAction); m_showBoundingRectAction = new QAction(Utils::Icons::BOUNDING_RECT.icon(), - tr("Show bounding rectangles and stripes for empty items"), + tr("Show bounding rectangles and stripes for empty items."), this); m_showBoundingRectAction->setCheckable(true); m_showBoundingRectAction->setChecked(false); @@ -152,7 +152,7 @@ FormEditorWidget::FormEditorWidget(FormEditorView *view) : upperActions.append(m_zoomAction.data()); m_toolBox->addRightSideAction(m_zoomAction.data()); - m_resetAction = new QAction(Utils::Icons::RESET_TOOLBAR.icon(), tr("Reset view"), this); + m_resetAction = new QAction(Utils::Icons::RESET_TOOLBAR.icon(), tr("Reset View"), this); registerActionAsCommand(m_resetAction, Constants::FORMEDITOR_REFRESH, QKeySequence(Qt::Key_R)); addAction(m_resetAction.data()); diff --git a/src/plugins/qmldesigner/components/propertyeditor/aligndistribute.cpp b/src/plugins/qmldesigner/components/propertyeditor/aligndistribute.cpp index 297e815b956..8b7672783e0 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/aligndistribute.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/aligndistribute.cpp @@ -685,7 +685,7 @@ bool AlignDistribute::executePixelPerfectDialog() const { QDialogButtonBox::StandardButton pressed = Utils::CheckableMessageBox::doNotAskAgainQuestion( Core::ICore::dialogParent(), - tr("Cannot distribute perfectly"), + tr("Cannot Distribute Perfectly"), tr("These objects cannot be distributed to equal pixel values. " "Do you want to distribute to the nearest possible values?"), Core::ICore::settings(), diff --git a/src/plugins/qmldesigner/generateresource.cpp b/src/plugins/qmldesigner/generateresource.cpp index dd72d8c31ca..87e9772ab4a 100644 --- a/src/plugins/qmldesigner/generateresource.cpp +++ b/src/plugins/qmldesigner/generateresource.cpp @@ -83,7 +83,7 @@ void GenerateResource::generateMenuEntry() currentProject->projectFilePath().parentDir().parentDir().toString())); auto resourceFileName = Core:: DocumentManager::getSaveFileName( - QCoreApplication::translate("QmlDesigner::GenerateResource", "Save Project As Resource"), + QCoreApplication::translate("QmlDesigner::GenerateResource", "Save Project as Resource"), lastUsedPathes.value(currentProject->displayName()) + "/" + currentProject->displayName() + ".qmlrc", QCoreApplication::translate("QmlDesigner::GenerateResource", "QML Resource File (*.qmlrc)")); if (resourceFileName.isEmpty()) |