summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/uic/baseline/chatmainwindow.ui.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2020-06-10 16:01:22 +0200
committerMarc Mutz <marc.mutz@qt.io>2022-03-18 18:35:03 +0100
commit9985cc330adb2af1b601e8a77ff5f9b485729577 (patch)
treefdc3d862098262e5b96f20d5e24a668d5c073ca0 /tests/auto/tools/uic/baseline/chatmainwindow.ui.h
parentfa13e35ce47bc0d47f0fbf9888dc653f350ec7ad (diff)
uic: use C string literals for setObjectName()
Because setObjectName() now takes a QAnyStringView, passing C string literals is much more efficient than using QString::fromUtf8(). This patch only deals with setObjectName() as a known property, probably from a name attribute. If the objectName property is set by a <property> element (or so I assume), we still emit a QString::fromUtf8(). Detecting objectName there would be too much magic. Besides, I haven't been able to find why sometimes there's a second setObjectName call right after the first, when in the XML it seems all kosher (name attribute and objectName <property> agreeing on the content). Change-Id: Icf07bad841ac735a9c744bbd955428ba15758089 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests/auto/tools/uic/baseline/chatmainwindow.ui.h')
-rw-r--r--tests/auto/tools/uic/baseline/chatmainwindow.ui.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/auto/tools/uic/baseline/chatmainwindow.ui.h b/tests/auto/tools/uic/baseline/chatmainwindow.ui.h
index 24c22a8076..cd6fe906cf 100644
--- a/tests/auto/tools/uic/baseline/chatmainwindow.ui.h
+++ b/tests/auto/tools/uic/baseline/chatmainwindow.ui.h
@@ -48,16 +48,16 @@ public:
void setupUi(QMainWindow *ChatMainWindow)
{
if (ChatMainWindow->objectName().isEmpty())
- ChatMainWindow->setObjectName(QString::fromUtf8("ChatMainWindow"));
+ ChatMainWindow->setObjectName("ChatMainWindow");
ChatMainWindow->resize(800, 600);
actionQuit = new QAction(ChatMainWindow);
- actionQuit->setObjectName(QString::fromUtf8("actionQuit"));
+ actionQuit->setObjectName("actionQuit");
actionAboutQt = new QAction(ChatMainWindow);
- actionAboutQt->setObjectName(QString::fromUtf8("actionAboutQt"));
+ actionAboutQt->setObjectName("actionAboutQt");
actionChangeNickname = new QAction(ChatMainWindow);
- actionChangeNickname->setObjectName(QString::fromUtf8("actionChangeNickname"));
+ actionChangeNickname->setObjectName("actionChangeNickname");
centralwidget = new QWidget(ChatMainWindow);
- centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
+ centralwidget->setObjectName("centralwidget");
hboxLayout = new QHBoxLayout(centralwidget);
#ifndef Q_OS_MAC
hboxLayout->setSpacing(6);
@@ -65,7 +65,7 @@ public:
#ifndef Q_OS_MAC
hboxLayout->setContentsMargins(9, 9, 9, 9);
#endif
- hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
+ hboxLayout->setObjectName("hboxLayout");
vboxLayout = new QVBoxLayout();
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
@@ -73,9 +73,9 @@ public:
#ifndef Q_OS_MAC
vboxLayout->setContentsMargins(0, 0, 0, 0);
#endif
- vboxLayout->setObjectName(QString::fromUtf8("vboxLayout"));
+ vboxLayout->setObjectName("vboxLayout");
chatHistory = new QTextBrowser(centralwidget);
- chatHistory->setObjectName(QString::fromUtf8("chatHistory"));
+ chatHistory->setObjectName("chatHistory");
chatHistory->setAcceptDrops(false);
chatHistory->setAcceptRichText(true);
@@ -86,19 +86,19 @@ public:
hboxLayout1->setSpacing(6);
#endif
hboxLayout1->setContentsMargins(0, 0, 0, 0);
- hboxLayout1->setObjectName(QString::fromUtf8("hboxLayout1"));
+ hboxLayout1->setObjectName("hboxLayout1");
label = new QLabel(centralwidget);
- label->setObjectName(QString::fromUtf8("label"));
+ label->setObjectName("label");
hboxLayout1->addWidget(label);
messageLineEdit = new QLineEdit(centralwidget);
- messageLineEdit->setObjectName(QString::fromUtf8("messageLineEdit"));
+ messageLineEdit->setObjectName("messageLineEdit");
hboxLayout1->addWidget(messageLineEdit);
sendButton = new QPushButton(centralwidget);
- sendButton->setObjectName(QString::fromUtf8("sendButton"));
+ sendButton->setObjectName("sendButton");
QSizePolicy sizePolicy(QSizePolicy::Minimum, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
@@ -115,15 +115,15 @@ public:
ChatMainWindow->setCentralWidget(centralwidget);
menubar = new QMenuBar(ChatMainWindow);
- menubar->setObjectName(QString::fromUtf8("menubar"));
+ menubar->setObjectName("menubar");
menubar->setGeometry(QRect(0, 0, 800, 31));
menuQuit = new QMenu(menubar);
- menuQuit->setObjectName(QString::fromUtf8("menuQuit"));
+ menuQuit->setObjectName("menuQuit");
menuFile = new QMenu(menubar);
- menuFile->setObjectName(QString::fromUtf8("menuFile"));
+ menuFile->setObjectName("menuFile");
ChatMainWindow->setMenuBar(menubar);
statusbar = new QStatusBar(ChatMainWindow);
- statusbar->setObjectName(QString::fromUtf8("statusbar"));
+ statusbar->setObjectName("statusbar");
ChatMainWindow->setStatusBar(statusbar);
#if QT_CONFIG(shortcut)
label->setBuddy(messageLineEdit);