Gui: Use QStringLiteral
This commit is contained in:
@@ -111,7 +111,7 @@ wbListItem::wbListItem(const QString& wbName, bool enabled, bool startupWb, bool
|
||||
textLabel->setEnabled(enableCheckBox->isChecked());
|
||||
|
||||
// 4: shortcut
|
||||
shortcutLabel = new QLabel(QString::fromLatin1("(W, %1)").arg(index + 1), this);
|
||||
shortcutLabel = new QLabel(QStringLiteral("(W, %1)").arg(index + 1), this);
|
||||
shortcutLabel->setToolTip(tr("Shortcut to activate this workbench."));
|
||||
shortcutLabel->setEnabled(enableCheckBox->isChecked());
|
||||
shortcutLabel->setVisible(index < 9);
|
||||
@@ -188,7 +188,7 @@ void wbListItem::setStartupWb(bool val)
|
||||
|
||||
void wbListItem::setShortcutLabel(int index)
|
||||
{
|
||||
shortcutLabel->setText(QString::fromLatin1("(W, %1)").arg(index + 1));
|
||||
shortcutLabel->setText(QStringLiteral("(W, %1)").arg(index + 1));
|
||||
shortcutLabel->setVisible(index < 9);
|
||||
}
|
||||
|
||||
@@ -593,9 +593,9 @@ void DlgSettingsWorkbenchesImp::setStartWorkbenchComboItems()
|
||||
}
|
||||
|
||||
{ // add special workbench to selection
|
||||
QPixmap px = Application::Instance->workbenchIcon(QString::fromLatin1("NoneWorkbench"));
|
||||
QString key = QString::fromLatin1("<last>");
|
||||
QString value = QString::fromLatin1("$LastModule");
|
||||
QPixmap px = Application::Instance->workbenchIcon(QStringLiteral("NoneWorkbench"));
|
||||
QString key = QStringLiteral("<last>");
|
||||
QString value = QStringLiteral("$LastModule");
|
||||
if (px.isNull()) {
|
||||
ui->AutoloadModuleCombo->addItem(key, QVariant(value));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user