summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/uic/baseline/pathpage.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/pathpage.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/pathpage.ui.h')
-rw-r--r--tests/auto/tools/uic/baseline/pathpage.ui.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/auto/tools/uic/baseline/pathpage.ui.h b/tests/auto/tools/uic/baseline/pathpage.ui.h
index d769581dbe..bdcf3ed9fd 100644
--- a/tests/auto/tools/uic/baseline/pathpage.ui.h
+++ b/tests/auto/tools/uic/baseline/pathpage.ui.h
@@ -38,12 +38,12 @@ public:
void setupUi(QWidget *PathPage)
{
if (PathPage->objectName().isEmpty())
- PathPage->setObjectName(QString::fromUtf8("PathPage"));
+ PathPage->setObjectName("PathPage");
PathPage->resize(417, 243);
gridLayout = new QGridLayout(PathPage);
- gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
+ gridLayout->setObjectName("gridLayout");
label_2 = new QLabel(PathPage);
- label_2->setObjectName(QString::fromUtf8("label_2"));
+ label_2->setObjectName("label_2");
QSizePolicy sizePolicy(QSizePolicy::Maximum, QSizePolicy::Preferred);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
@@ -53,7 +53,7 @@ public:
gridLayout->addWidget(label_2, 0, 0, 1, 1);
filterLineEdit = new QLineEdit(PathPage);
- filterLineEdit->setObjectName(QString::fromUtf8("filterLineEdit"));
+ filterLineEdit->setObjectName("filterLineEdit");
gridLayout->addWidget(filterLineEdit, 0, 1, 1, 2);
@@ -62,17 +62,17 @@ public:
gridLayout->addItem(spacerItem, 1, 1, 1, 1);
label = new QLabel(PathPage);
- label->setObjectName(QString::fromUtf8("label"));
+ label->setObjectName("label");
gridLayout->addWidget(label, 2, 0, 1, 3);
pathListWidget = new QListWidget(PathPage);
- pathListWidget->setObjectName(QString::fromUtf8("pathListWidget"));
+ pathListWidget->setObjectName("pathListWidget");
gridLayout->addWidget(pathListWidget, 3, 0, 3, 3);
addButton = new QPushButton(PathPage);
- addButton->setObjectName(QString::fromUtf8("addButton"));
+ addButton->setObjectName("addButton");
QSizePolicy sizePolicy1(QSizePolicy::Maximum, QSizePolicy::Fixed);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
@@ -82,7 +82,7 @@ public:
gridLayout->addWidget(addButton, 3, 3, 1, 1);
removeButton = new QPushButton(PathPage);
- removeButton->setObjectName(QString::fromUtf8("removeButton"));
+ removeButton->setObjectName("removeButton");
sizePolicy1.setHeightForWidth(removeButton->sizePolicy().hasHeightForWidth());
removeButton->setSizePolicy(sizePolicy1);