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:
@@ -213,7 +213,7 @@ Column {
|
|||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: qsTr("Resize duration")
|
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
|
disabledState: !backendValues.highlightResizeDuration.isAvailable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -462,14 +462,14 @@ public:
|
|||||||
} catch (const DocumentError &) {
|
} catch (const DocumentError &) {
|
||||||
QMessageBox::warning(
|
QMessageBox::warning(
|
||||||
Core::ICore::mainWindow(),
|
Core::ICore::mainWindow(),
|
||||||
QCoreApplication::translate("DesignerActionManager", "Document has errors"),
|
QCoreApplication::translate("DesignerActionManager", "Document Has Errors"),
|
||||||
QCoreApplication::translate("DesignerActionManager",
|
QCoreApplication::translate("DesignerActionManager",
|
||||||
"The document which contains the list model "
|
"The document which contains the list model "
|
||||||
"contains errors. So we cannot edit it."));
|
"contains errors. So we cannot edit it."));
|
||||||
} catch (const RewritingException &) {
|
} catch (const RewritingException &) {
|
||||||
QMessageBox::warning(
|
QMessageBox::warning(
|
||||||
Core::ICore::mainWindow(),
|
Core::ICore::mainWindow(),
|
||||||
QCoreApplication::translate("DesignerActionManager", "Document cannot be written"),
|
QCoreApplication::translate("DesignerActionManager", "Document Cannot Be Written"),
|
||||||
QCoreApplication::translate("DesignerActionManager",
|
QCoreApplication::translate("DesignerActionManager",
|
||||||
"An error occurred during a write attemp."));
|
"An error occurred during a write attemp."));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ void ListModelEditorDialog::openColumnDialog()
|
|||||||
{
|
{
|
||||||
bool ok;
|
bool ok;
|
||||||
QString columnName = QInputDialog::getText(
|
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())
|
if (ok && !columnName.isEmpty())
|
||||||
m_model->addColumn(columnName);
|
m_model->addColumn(columnName);
|
||||||
}
|
}
|
||||||
@@ -138,7 +138,7 @@ void ListModelEditorDialog::changeHeader(int column)
|
|||||||
|
|
||||||
bool ok;
|
bool ok;
|
||||||
QString newPropertyName = QInputDialog::getText(
|
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())
|
if (ok && !newPropertyName.isEmpty())
|
||||||
m_model->renameColumn(column, newPropertyName);
|
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;
|
return modelNode.locked() ? Qt::Checked : Qt::Unchecked;
|
||||||
else if (role == Qt::ToolTipRole && !modelNodeForIndex(index).isRootNode())
|
else if (role == Qt::ToolTipRole && !modelNodeForIndex(index).isRootNode())
|
||||||
return tr("Toggles whether this item is locked.\n"
|
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();
|
return QVariant();
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ void StatesEditorView::removeState(int nodeId)
|
|||||||
msgBox.setWindowTitle(tr("Remove State"));
|
msgBox.setWindowTitle(tr("Remove State"));
|
||||||
msgBox.setText(QString(tr("Removing this state will modify locked items.") + "<br><br>%1")
|
msgBox.setText(QString(tr("Removing this state will modify locked items.") + "<br><br>%1")
|
||||||
.arg(detailedText));
|
.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.setStandardButtons(QMessageBox::Ok | QMessageBox::Cancel);
|
||||||
msgBox.setDefaultButton(QMessageBox::Ok);
|
msgBox.setDefaultButton(QMessageBox::Ok);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user