forked from qt-creator/qt-creator
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:
@@ -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."));
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user