summaryrefslogtreecommitdiffstats
path: root/src/designer/src/lib/shared/orderdialog.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-03-21 14:30:40 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-04-13 10:48:34 +0200
commitc59546f2782fa1a7add12dfdf4c4a32951608f29 (patch)
tree019a6f444ae6be24ca3cbc79c804021e60b30d1c /src/designer/src/lib/shared/orderdialog.cpp
parent3e3146a35e2f1c719c87094b58a2cc8e2bc3ea2c (diff)
Qt Designer: Replace QString::fromUtf8() by modern literals
Pick-to: 6.5 Change-Id: If0aff3c1a767e6830f5480f57dfe82a66feb124c Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Diffstat (limited to 'src/designer/src/lib/shared/orderdialog.cpp')
-rw-r--r--src/designer/src/lib/shared/orderdialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/designer/src/lib/shared/orderdialog.cpp b/src/designer/src/lib/shared/orderdialog.cpp
index e0ad83e7a..cecfd35d0 100644
--- a/src/designer/src/lib/shared/orderdialog.cpp
+++ b/src/designer/src/lib/shared/orderdialog.cpp
@@ -13,6 +13,8 @@
QT_BEGIN_NAMESPACE
+using namespace Qt::StringLiterals;
+
// OrderDialog: Used to reorder the pages of QStackedWidget and QToolBox.
// Provides up and down buttons as well as DnD via QAbstractItemView::InternalMove mode
namespace qdesigner_internal {
@@ -23,8 +25,8 @@ OrderDialog::OrderDialog(QWidget *parent) :
m_format(PageOrderFormat)
{
m_ui->setupUi(this);
- m_ui->upButton->setIcon(createIconSet(QString::fromUtf8("up.png")));
- m_ui->downButton->setIcon(createIconSet(QString::fromUtf8("down.png")));
+ m_ui->upButton->setIcon(createIconSet(u"up.png"_s));
+ m_ui->downButton->setIcon(createIconSet(u"down.png"_s));
m_ui->buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
connect(m_ui->buttonBox->button(QDialogButtonBox::Reset), &QAbstractButton::clicked,
this, &OrderDialog::slotReset);