Qt Quick Designer: Fix UI text

Fix capitalization, punctuation, style, and typos.

Task-number: QTCREATORBUG-24873
Change-Id: Iecf7781d604b799563457cf000ab5f48e06b251c
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Leena Miettinen
2020-11-06 16:55:13 +01:00
parent f2254419af
commit 1e2939916e
5 changed files with 7 additions and 7 deletions

View File

@@ -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."));
}

View File

@@ -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);

View File

@@ -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();

View File

@@ -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.") + "<br><br>%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);