summaryrefslogtreecommitdiff
path: root/src/designer/src/plugins/activeqt/qaxwidgettaskmenu.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-03-21 15:35:44 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-04-21 17:18:09 +0200
commit00ff2b06a17e90921d79831a62e95eecf8c6954a (patch)
tree40877b8e595eda601252c995f57d1dd3166c8cd3 /src/designer/src/plugins/activeqt/qaxwidgettaskmenu.cpp
parent6b7f6990aa1abed20c260a2eb2869f39ce59f8f7 (diff)
downloadqttools-00ff2b06a17e90921d79831a62e95eecf8c6954a.tar.gz
Qt Designer: Replace QLatin1Char by modern literals
Pick-to: 6.5 Change-Id: Ied11784e840d03542a5db281590729838ed625c3 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/designer/src/plugins/activeqt/qaxwidgettaskmenu.cpp')
-rw-r--r--src/designer/src/plugins/activeqt/qaxwidgettaskmenu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/designer/src/plugins/activeqt/qaxwidgettaskmenu.cpp b/src/designer/src/plugins/activeqt/qaxwidgettaskmenu.cpp
index a5c886012..6f4db2880 100644
--- a/src/designer/src/plugins/activeqt/qaxwidgettaskmenu.cpp
+++ b/src/designer/src/plugins/activeqt/qaxwidgettaskmenu.cpp
@@ -24,6 +24,8 @@
QT_BEGIN_NAMESPACE
+using namespace Qt::StringLiterals;
+
/* SetControlCommand: An undo commands that sets a control bypassing
Designer's property system which cannot handle the changing
of the 'control' property's index and other cached information
@@ -138,10 +140,8 @@ void QAxWidgetTaskMenu::setActiveXControl()
Q_ASSERT(formWin != nullptr);
QString value = clsid.toString();
- if (!key.isEmpty()) {
- value += QLatin1Char(':');
- value += key;
- }
+ if (!key.isEmpty())
+ value += u':' + key;
formWin->commandHistory()->push(new SetControlCommand(m_axwidget, formWin, value));
}