9985cc330a
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>
104 lines
3.5 KiB
C++
104 lines
3.5 KiB
C++
/********************************************************************************
|
|
** Form generated from reading UI file 'outputpage.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 OUTPUTPAGE_H
|
|
#define OUTPUTPAGE_H
|
|
|
|
#include <QtCore/QVariant>
|
|
#include <QtWidgets/QApplication>
|
|
#include <QtWidgets/QGridLayout>
|
|
#include <QtWidgets/QLabel>
|
|
#include <QtWidgets/QLineEdit>
|
|
#include <QtWidgets/QSpacerItem>
|
|
#include <QtWidgets/QWidget>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class Ui_OutputPage
|
|
{
|
|
public:
|
|
QGridLayout *gridLayout;
|
|
QSpacerItem *spacerItem;
|
|
QLabel *label;
|
|
QLineEdit *projectLineEdit;
|
|
QLabel *label_2;
|
|
QLineEdit *collectionLineEdit;
|
|
QSpacerItem *spacerItem1;
|
|
|
|
void setupUi(QWidget *OutputPage)
|
|
{
|
|
if (OutputPage->objectName().isEmpty())
|
|
OutputPage->setObjectName("OutputPage");
|
|
OutputPage->resize(417, 242);
|
|
gridLayout = new QGridLayout(OutputPage);
|
|
gridLayout->setObjectName("gridLayout");
|
|
spacerItem = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
|
|
|
|
gridLayout->addItem(spacerItem, 0, 1, 1, 1);
|
|
|
|
label = new QLabel(OutputPage);
|
|
label->setObjectName("label");
|
|
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
|
|
sizePolicy.setHorizontalStretch(0);
|
|
sizePolicy.setVerticalStretch(0);
|
|
sizePolicy.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
|
|
label->setSizePolicy(sizePolicy);
|
|
|
|
gridLayout->addWidget(label, 1, 0, 1, 1);
|
|
|
|
projectLineEdit = new QLineEdit(OutputPage);
|
|
projectLineEdit->setObjectName("projectLineEdit");
|
|
QSizePolicy sizePolicy1(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
|
sizePolicy1.setHorizontalStretch(0);
|
|
sizePolicy1.setVerticalStretch(0);
|
|
sizePolicy1.setHeightForWidth(projectLineEdit->sizePolicy().hasHeightForWidth());
|
|
projectLineEdit->setSizePolicy(sizePolicy1);
|
|
|
|
gridLayout->addWidget(projectLineEdit, 1, 1, 1, 1);
|
|
|
|
label_2 = new QLabel(OutputPage);
|
|
label_2->setObjectName("label_2");
|
|
sizePolicy.setHeightForWidth(label_2->sizePolicy().hasHeightForWidth());
|
|
label_2->setSizePolicy(sizePolicy);
|
|
|
|
gridLayout->addWidget(label_2, 2, 0, 1, 1);
|
|
|
|
collectionLineEdit = new QLineEdit(OutputPage);
|
|
collectionLineEdit->setObjectName("collectionLineEdit");
|
|
sizePolicy1.setHeightForWidth(collectionLineEdit->sizePolicy().hasHeightForWidth());
|
|
collectionLineEdit->setSizePolicy(sizePolicy1);
|
|
|
|
gridLayout->addWidget(collectionLineEdit, 2, 1, 1, 1);
|
|
|
|
spacerItem1 = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
|
|
|
gridLayout->addItem(spacerItem1, 3, 1, 1, 1);
|
|
|
|
|
|
retranslateUi(OutputPage);
|
|
|
|
QMetaObject::connectSlotsByName(OutputPage);
|
|
} // setupUi
|
|
|
|
void retranslateUi(QWidget *OutputPage)
|
|
{
|
|
OutputPage->setWindowTitle(QCoreApplication::translate("OutputPage", "Form", nullptr));
|
|
label->setText(QCoreApplication::translate("OutputPage", "Project file name:", nullptr));
|
|
label_2->setText(QCoreApplication::translate("OutputPage", "Collection file name:", nullptr));
|
|
} // retranslateUi
|
|
|
|
};
|
|
|
|
namespace Ui {
|
|
class OutputPage: public Ui_OutputPage {};
|
|
} // namespace Ui
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // OUTPUTPAGE_H
|