Gui: Use QStringLiteral

This commit is contained in:
Benjamin Bræstrup Sayoc
2025-02-09 18:33:01 +01:00
parent 24ac19e261
commit 8d2d0a47f4
83 changed files with 519 additions and 520 deletions

View File

@@ -108,7 +108,7 @@ WorkbenchTabWidget::WorkbenchTabWidget(WorkbenchGroup* aGroup, QWidget* parent)
setToolTip(aGroup->toolTip());
setStatusTip(aGroup->action()->statusTip());
setWhatsThis(aGroup->action()->whatsThis());
setObjectName(QString::fromLatin1("WbTabBar"));
setObjectName(QStringLiteral("WbTabBar"));
tabBar = new WbTabBar(this);
moreButton = new QToolButton(this);
@@ -125,7 +125,7 @@ WorkbenchTabWidget::WorkbenchTabWidget(WorkbenchGroup* aGroup, QWidget* parent)
moreButton->setToolButtonStyle(Qt::ToolButtonIconOnly);
moreButton->setPopupMode(QToolButton::InstantPopup);
moreButton->setMenu(new QMenu(moreButton));
moreButton->setObjectName(QString::fromLatin1("WbTabBarMore"));
moreButton->setObjectName(QStringLiteral("WbTabBarMore"));
if (parent->inherits("QToolBar")) {
// when toolbar is created it is not yet placed in its designated area
@@ -404,7 +404,7 @@ void WorkbenchTabWidget::buildPrefMenu()
// Add disabled workbenches, sorted alphabetically.
for (auto action : wbActionGroup->getDisabledWbActions()) {
if (action->text() == QString::fromLatin1("<none>")) {
if (action->text() == QStringLiteral("<none>")) {
continue;
}
@@ -416,7 +416,7 @@ void WorkbenchTabWidget::buildPrefMenu()
QAction* preferencesAction = menu->addAction(tr("Preferences"));
connect(preferencesAction, &QAction::triggered, this, []() {
Gui::Dialog::DlgPreferencesImp cDlg(getMainWindow());
cDlg.activateGroupPage(QString::fromUtf8("Workbenches"), 0);
cDlg.activateGroupPage(QStringLiteral("Workbenches"), 0);
cDlg.exec();
});
}