qt5base-lts/tests/auto/tools/uic/baseline/topicchooser.ui.h
Marc Mutz 9985cc330a 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>
2022-03-18 18:35:03 +01:00

118 lines
3.6 KiB
C++

/********************************************************************************
** Form generated from reading UI file 'topicchooser.ui'
**
** Created by: Qt User Interface Compiler version 6.0.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef TOPICCHOOSER_H
#define TOPICCHOOSER_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QListWidget>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_TopicChooser
{
public:
QVBoxLayout *vboxLayout;
QLabel *label;
QListWidget *listWidget;
QWidget *Layout16;
QHBoxLayout *hboxLayout;
QSpacerItem *Horizontal_Spacing2;
QPushButton *buttonDisplay;
QPushButton *buttonCancel;
void setupUi(QDialog *TopicChooser)
{
if (TopicChooser->objectName().isEmpty())
TopicChooser->setObjectName("TopicChooser");
TopicChooser->resize(391, 223);
TopicChooser->setSizeGripEnabled(true);
vboxLayout = new QVBoxLayout(TopicChooser);
#ifndef Q_OS_MAC
vboxLayout->setSpacing(6);
#endif
vboxLayout->setContentsMargins(11, 11, 11, 11);
vboxLayout->setObjectName("vboxLayout");
vboxLayout->setObjectName(QString::fromUtf8("unnamed"));
label = new QLabel(TopicChooser);
label->setObjectName("label");
vboxLayout->addWidget(label);
listWidget = new QListWidget(TopicChooser);
listWidget->setObjectName("listWidget");
vboxLayout->addWidget(listWidget);
Layout16 = new QWidget(TopicChooser);
Layout16->setObjectName("Layout16");
hboxLayout = new QHBoxLayout(Layout16);
#ifndef Q_OS_MAC
hboxLayout->setSpacing(6);
#endif
hboxLayout->setContentsMargins(0, 0, 0, 0);
hboxLayout->setObjectName("hboxLayout");
hboxLayout->setObjectName(QString::fromUtf8("unnamed"));
hboxLayout->setContentsMargins(0, 0, 0, 0);
Horizontal_Spacing2 = new QSpacerItem(20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
hboxLayout->addItem(Horizontal_Spacing2);
buttonDisplay = new QPushButton(Layout16);
buttonDisplay->setObjectName("buttonDisplay");
buttonDisplay->setAutoDefault(true);
hboxLayout->addWidget(buttonDisplay);
buttonCancel = new QPushButton(Layout16);
buttonCancel->setObjectName("buttonCancel");
buttonCancel->setAutoDefault(true);
hboxLayout->addWidget(buttonCancel);
vboxLayout->addWidget(Layout16);
#if QT_CONFIG(shortcut)
label->setBuddy(listWidget);
#endif // QT_CONFIG(shortcut)
retranslateUi(TopicChooser);
buttonDisplay->setDefault(true);
QMetaObject::connectSlotsByName(TopicChooser);
} // setupUi
void retranslateUi(QDialog *TopicChooser)
{
TopicChooser->setWindowTitle(QCoreApplication::translate("TopicChooser", "Choose Topic", nullptr));
label->setText(QCoreApplication::translate("TopicChooser", "&Topics", nullptr));
buttonDisplay->setText(QCoreApplication::translate("TopicChooser", "&Display", nullptr));
buttonCancel->setText(QCoreApplication::translate("TopicChooser", "&Close", nullptr));
} // retranslateUi
};
namespace Ui {
class TopicChooser: public Ui_TopicChooser {};
} // namespace Ui
QT_END_NAMESPACE
#endif // TOPICCHOOSER_H