From a497c137747d45314b8925ea6e52b2c97ecf596c Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Thu, 18 Mar 2021 16:20:28 +0100 Subject: [PATCH] QDS Components: Replace "item" with "component" in UI text Task-number: QDS-3778 Change-Id: I67cfaad948fe9a43b2312cdb5e248d0849b7c6d9 Reviewed-by: Thomas Hartmann --- .../annotationeditor/annotationeditordialog.ui | 2 +- .../componentcore/componentcore_constants.h | 18 +++++++++--------- .../componentcore/modelnodeoperations.cpp | 2 +- .../components/formeditor/formeditorwidget.cpp | 10 +++++----- .../navigator/navigatortreemodel.cpp | 14 +++++++------- .../components/navigator/navigatorwidget.cpp | 4 ++-- .../propertyeditor/propertyeditorview.cpp | 6 +++--- .../stateseditor/stateseditorview.cpp | 4 ++-- .../designercore/metainfo/metainforeader.cpp | 2 +- src/plugins/qmldesigner/settingspage.ui | 14 +++++++------- .../qmljseditor/qmljscomponentnamedialog.cpp | 2 +- 11 files changed, 39 insertions(+), 39 deletions(-) diff --git a/src/plugins/qmldesigner/components/annotationeditor/annotationeditordialog.ui b/src/plugins/qmldesigner/components/annotationeditor/annotationeditordialog.ui index 8b0323ec8c3..92dc5c71d50 100644 --- a/src/plugins/qmldesigner/components/annotationeditor/annotationeditordialog.ui +++ b/src/plugins/qmldesigner/components/annotationeditor/annotationeditordialog.ui @@ -22,7 +22,7 @@ - Selected item + Selected component diff --git a/src/plugins/qmldesigner/components/componentcore/componentcore_constants.h b/src/plugins/qmldesigner/components/componentcore/componentcore_constants.h index 9477212bb7d..69e4e39b558 100644 --- a/src/plugins/qmldesigner/components/componentcore/componentcore_constants.h +++ b/src/plugins/qmldesigner/components/componentcore/componentcore_constants.h @@ -156,7 +156,7 @@ const char addToGroupItemDisplayName[] = QT_TRANSLATE_NOOP("QmlDesignerContextMe const char removeGroupItemDisplayName[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Remove GroupItem"); -const char addItemToStackedContainerDisplayName[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Add Item"); +const char addItemToStackedContainerDisplayName[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Add Component"); const char addTabBarToStackedContainerDisplayName[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Add Tab Bar"); const char increaseIndexToStackedContainerDisplayName[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Increase Index"); const char decreaseIndexToStackedContainerDisplayName[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Decrease Index"); @@ -171,22 +171,22 @@ const char layoutFillHeightDisplayName[] = QT_TRANSLATE_NOOP("QmlDesignerContext const char flowAssignEffectDisplayName[] = "Assign FlowEffect "; const char flowAssignCustomEffectDisplayName[] = "Assign Custom FlowEffect "; -const char raiseToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Raise selected item."); -const char lowerToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Lower selected item."); +const char raiseToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Raise selected component."); +const char lowerToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Lower selected component."); const char resetSizeToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Reset size and use implicit size."); const char resetPositionTooltip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Reset position and use implicit position."); -const char anchorsFillToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Fill selected item to parent."); -const char anchorsResetToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Reset anchors for selected item."); +const char anchorsFillToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Fill selected component to parent."); +const char anchorsResetToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Reset anchors for selected component."); -const char layoutColumnLayoutToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Layout selected items in column layout."); -const char layoutRowLayoutToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Layout selected items in row layout."); -const char layoutGridLayoutToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Layout selected items in grid layout."); +const char layoutColumnLayoutToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Layout selected components in column layout."); +const char layoutRowLayoutToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Layout selected components in row layout."); +const char layoutGridLayoutToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Layout selected components in grid layout."); const char increaseIndexOfStackedContainerToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Increase index of stacked container."); const char decreaseIndexOfStackedContainerToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Decrease index of stacked container."); -const char addItemToStackedContainerToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Add item to stacked container."); +const char addItemToStackedContainerToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Add component to stacked container."); const char addFlowActionToolTip[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", "Add flow action."); const char editListModelDisplayName[] = QT_TRANSLATE_NOOP("QmlDesignerContextMenu", diff --git a/src/plugins/qmldesigner/components/componentcore/modelnodeoperations.cpp b/src/plugins/qmldesigner/components/componentcore/modelnodeoperations.cpp index ebcae41091e..e72c61829ac 100644 --- a/src/plugins/qmldesigner/components/componentcore/modelnodeoperations.cpp +++ b/src/plugins/qmldesigner/components/componentcore/modelnodeoperations.cpp @@ -633,7 +633,7 @@ void addSignalHandlerOrGotoImplementation(const SelectionContext &selectionState if (!qmlObjectNode.isValid()) { QString title = QCoreApplication::translate("ModelNodeOperations", "Go to Implementation"); - QString description = QCoreApplication::translate("ModelNodeOperations", "Invalid item."); + QString description = QCoreApplication::translate("ModelNodeOperations", "Invalid component."); Core::AsynchronousMessageBox::warning(title, description); return; } diff --git a/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp b/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp index deef6c148a0..5863e6230f0 100644 --- a/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp +++ b/src/plugins/qmldesigner/components/formeditor/formeditorwidget.cpp @@ -87,13 +87,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 components 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 components but do not generate anchors.")); m_snappingAction->setCheckable(true); m_snappingAction->setChecked(true); m_snappingAction->setIcon(Icons::SNAPPING.icon()); @@ -108,7 +108,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 components."), this); m_showBoundingRectAction->setCheckable(true); m_showBoundingRectAction->setChecked(false); @@ -123,14 +123,14 @@ FormEditorWidget::FormEditorWidget(FormEditorView *view) upperActions.append(separatorAction); m_rootWidthAction = new LineEditAction(tr("Override Width"), this); - m_rootWidthAction->setToolTip(tr("Override width of root item.")); + m_rootWidthAction->setToolTip(tr("Override width of root component.")); connect(m_rootWidthAction.data(), &LineEditAction::textChanged, this, &FormEditorWidget::changeRootItemWidth); addAction(m_rootWidthAction.data()); upperActions.append(m_rootWidthAction.data()); m_rootHeightAction = new LineEditAction(tr("Override Height"), this); - m_rootHeightAction->setToolTip(tr("Override height of root item.")); + m_rootHeightAction->setToolTip(tr("Override height of root component.")); connect(m_rootHeightAction.data(), &LineEditAction::textChanged, this, &FormEditorWidget::changeRootItemHeight); addAction(m_rootHeightAction.data()); diff --git a/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp b/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp index bf2460a3e76..56de6785cbc 100644 --- a/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp +++ b/src/plugins/qmldesigner/components/navigator/navigatortreemodel.cpp @@ -91,7 +91,7 @@ bool fitsToTargetProperty(const NodeAbstractProperty &targetProperty, static inline QString msgUnknownItem(const QString &t) { - return NavigatorTreeModel::tr("Unknown item: %1").arg(t); + return NavigatorTreeModel::tr("Unknown component: %1").arg(t); } static void removePosition(const ModelNode &node) @@ -250,20 +250,20 @@ QVariant NavigatorTreeModel::data(const QModelIndex &index, int role) const if (role == Qt::CheckStateRole) return currentQmlObjectNode.isAliasExported() ? Qt::Checked : Qt::Unchecked; else if (role == Qt::ToolTipRole && !modelNodeForIndex(index).isRootNode()) - return tr("Toggles whether this item is exported as an " - "alias property of the root item."); + return tr("Toggles whether this component is exported as an " + "alias property of the root component."); } else if (index.column() == ColumnType::Visibility) { // visible if (role == Qt::CheckStateRole) return m_view->isNodeInvisible(modelNode) ? Qt::Unchecked : Qt::Checked; else if (role == Qt::ToolTipRole && !modelNodeForIndex(index).isRootNode()) - return tr("Toggles the visibility of this item in the form editor.\n" - "This is independent of the visibility property in QML."); + return tr("Toggles the visibility of this component in the form editor.\n" + "This is independent of the visibility property."); } else if (index.column() == ColumnType::Lock) { // lock if (role == Qt::CheckStateRole) 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 cannot be modified or selected."); + return tr("Toggles whether this component is locked.\n" + "Locked components cannot be modified or selected."); } return QVariant(); diff --git a/src/plugins/qmldesigner/components/navigator/navigatorwidget.cpp b/src/plugins/qmldesigner/components/navigator/navigatorwidget.cpp index d3ea5047fa0..453865966be 100644 --- a/src/plugins/qmldesigner/components/navigator/navigatorwidget.cpp +++ b/src/plugins/qmldesigner/components/navigator/navigatorwidget.cpp @@ -126,7 +126,7 @@ QList NavigatorWidget::createToolBarWidgets() filter->setPopupMode(QToolButton::InstantPopup); filter->setProperty("noArrow", true); auto filterMenu = new QMenu(filter); - auto filterAction = new QAction(tr("Show only visible items."), nullptr); + auto filterAction = new QAction(tr("Show Only Visible Components"), nullptr); filterAction->setCheckable(true); bool filterFlag = DesignerSettings::getValue(DesignerSettingsKey::NAVIGATOR_SHOW_ONLY_VISIBLE_ITEMS).toBool(); @@ -135,7 +135,7 @@ QList NavigatorWidget::createToolBarWidgets() connect(filterAction, &QAction::toggled, this, &NavigatorWidget::filterToggled); filterMenu->addAction(filterAction); - auto reverseAction = new QAction(tr("Reverse item order."), nullptr); + auto reverseAction = new QAction(tr("Reverse Component Order"), nullptr); reverseAction->setCheckable(true); bool reverseFlag = DesignerSettings::getValue(DesignerSettingsKey::NAVIGATOR_REVERSE_ITEM_ORDER).toBool(); diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp index 8e9e60b170f..873d7ba6a8d 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorview.cpp @@ -163,9 +163,9 @@ void PropertyEditorView::changeValue(const QString &name) value->setValue(m_selectedNode.id()); m_locked = false; if (!QmlDesigner::ModelNode::isValidId(newId)) - Core::AsynchronousMessageBox::warning(tr("Invalid Id"), tr("%1 is an invalid id.").arg(newId)); + Core::AsynchronousMessageBox::warning(tr("Invalid ID"), tr("%1 is an invalid ID.").arg(newId)); else - Core::AsynchronousMessageBox::warning(tr("Invalid Id"), tr("%1 already exists.").arg(newId)); + Core::AsynchronousMessageBox::warning(tr("Invalid ID"), tr("%1 already exists.").arg(newId)); } return; } @@ -323,7 +323,7 @@ void PropertyEditorView::exportPopertyAsAlias(const QString &name) PropertyName propertyName = aliasName.toUtf8(); if (rootModelNode().hasProperty(propertyName)) { Core::AsynchronousMessageBox::warning(tr("Cannot Export Property as Alias"), - tr("Property %1 does already exist for root item.").arg(aliasName)); + tr("Property %1 does already exist for root component.").arg(aliasName)); return; } rootModelNode().bindingProperty(propertyName).setDynamicTypeNameAndExpression("alias", id + "." + name); diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp index 220d2fb5afa..e61982fae8c 100644 --- a/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp +++ b/src/plugins/qmldesigner/components/stateseditor/stateseditorview.cpp @@ -109,7 +109,7 @@ void StatesEditorView::removeState(int nodeId) if (!lockedTargets.empty()) { Utils::sort(lockedTargets); - QString detailedText = QString("" + tr("Locked items:") + "
"); + QString detailedText = QString("" + tr("Locked components:") + "
"); for (const auto &id : qAsConst(lockedTargets)) detailedText.append("- " + id + "
"); @@ -120,7 +120,7 @@ void StatesEditorView::removeState(int nodeId) msgBox.setTextFormat(Qt::RichText); msgBox.setIcon(QMessageBox::Question); msgBox.setWindowTitle(tr("Remove State")); - msgBox.setText(QString(tr("Removing this state will modify locked items.") + "

%1") + msgBox.setText(QString(tr("Removing this state will modify locked components.") + "

%1") .arg(detailedText)); msgBox.setInformativeText(tr("Continue by removing the state?")); msgBox.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel); diff --git a/src/plugins/qmldesigner/designercore/metainfo/metainforeader.cpp b/src/plugins/qmldesigner/designercore/metainfo/metainforeader.cpp index c9ae1ef0d0c..c79a506ea6f 100644 --- a/src/plugins/qmldesigner/designercore/metainfo/metainforeader.cpp +++ b/src/plugins/qmldesigner/designercore/metainfo/metainforeader.cpp @@ -366,7 +366,7 @@ void MetaInfoReader::syncItemLibraryEntries() try { m_metaInfo.itemLibraryInfo()->addEntries(m_bufferedEntries, m_overwriteDuplicates); } catch (const InvalidMetaInfoException &) { - addError(tr("Invalid or duplicate item library entry %1").arg(m_currentEntry.name()), currentSourceLocation()); + addError(tr("Invalid or duplicate library entry %1").arg(m_currentEntry.name()), currentSourceLocation()); } m_bufferedEntries.clear(); } diff --git a/src/plugins/qmldesigner/settingspage.ui b/src/plugins/qmldesigner/settingspage.ui index dabe3df7348..69d238ae4b0 100644 --- a/src/plugins/qmldesigner/settingspage.ui +++ b/src/plugins/qmldesigner/settingspage.ui @@ -32,7 +32,7 @@ - Parent item padding: + Parent component padding: @@ -46,7 +46,7 @@ - Sibling item spacing: + Sibling component spacing: @@ -105,7 +105,7 @@ - Root Item Init Size + Root Component Init Size @@ -247,7 +247,7 @@ - + true @@ -288,7 +288,7 @@ - + true @@ -348,7 +348,7 @@ Also warns in the code editor about QML features that are not properly supported by the Qt Quick Designer. - Warn about unsupported features of Qt Quick Designer in the code editor + Warn about unsupported features of .ui.qml files in code editor @@ -358,7 +358,7 @@ Warns about QML features that are not properly supported by the Qt Quick Designer. - Warn about unsupported features in the Qt Quick Designer + Warn about unsupported features in .ui.qml files diff --git a/src/plugins/qmljseditor/qmljscomponentnamedialog.cpp b/src/plugins/qmljseditor/qmljscomponentnamedialog.cpp index f66a5a686e4..293f6e385be 100644 --- a/src/plugins/qmljseditor/qmljscomponentnamedialog.cpp +++ b/src/plugins/qmljseditor/qmljscomponentnamedialog.cpp @@ -169,7 +169,7 @@ QString ComponentNameDialog::isValid() const return tr("Invalid path"); if (QDir(ui->pathEdit->path()).exists(compName + u".qml")) - return tr("Component exists already"); + return tr("Component already exists"); return QString(); }