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>
80 lines
2.3 KiB
C++
80 lines
2.3 KiB
C++
/********************************************************************************
|
|
** Form generated from reading UI file 'gridalignment.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 GRIDALIGNMENT_H
|
|
#define GRIDALIGNMENT_H
|
|
|
|
#include <QtCore/QVariant>
|
|
#include <QtWidgets/QApplication>
|
|
#include <QtWidgets/QGridLayout>
|
|
#include <QtWidgets/QPushButton>
|
|
#include <QtWidgets/QWidget>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
class Ui_Form
|
|
{
|
|
public:
|
|
QGridLayout *gridLayout;
|
|
QPushButton *pushButton;
|
|
QPushButton *pushButton_3;
|
|
QPushButton *pushButton_2;
|
|
QPushButton *pushButton_4;
|
|
|
|
void setupUi(QWidget *Form)
|
|
{
|
|
if (Form->objectName().isEmpty())
|
|
Form->setObjectName("Form");
|
|
Form->resize(279, 163);
|
|
gridLayout = new QGridLayout(Form);
|
|
gridLayout->setObjectName("gridLayout");
|
|
pushButton = new QPushButton(Form);
|
|
pushButton->setObjectName("pushButton");
|
|
|
|
gridLayout->addWidget(pushButton, 0, 0, 1, 1, Qt::AlignLeft);
|
|
|
|
pushButton_3 = new QPushButton(Form);
|
|
pushButton_3->setObjectName("pushButton_3");
|
|
|
|
gridLayout->addWidget(pushButton_3, 0, 1, 1, 1, Qt::AlignTop);
|
|
|
|
pushButton_2 = new QPushButton(Form);
|
|
pushButton_2->setObjectName("pushButton_2");
|
|
|
|
gridLayout->addWidget(pushButton_2, 1, 0, 1, 1, Qt::AlignRight);
|
|
|
|
pushButton_4 = new QPushButton(Form);
|
|
pushButton_4->setObjectName("pushButton_4");
|
|
|
|
gridLayout->addWidget(pushButton_4, 1, 1, 1, 1, Qt::AlignBottom);
|
|
|
|
|
|
retranslateUi(Form);
|
|
|
|
QMetaObject::connectSlotsByName(Form);
|
|
} // setupUi
|
|
|
|
void retranslateUi(QWidget *Form)
|
|
{
|
|
Form->setWindowTitle(QCoreApplication::translate("Form", "Form", nullptr));
|
|
pushButton->setText(QCoreApplication::translate("Form", "Left", nullptr));
|
|
pushButton_3->setText(QCoreApplication::translate("Form", "Top", nullptr));
|
|
pushButton_2->setText(QCoreApplication::translate("Form", "Right", nullptr));
|
|
pushButton_4->setText(QCoreApplication::translate("Form", "Bottom", nullptr));
|
|
} // retranslateUi
|
|
|
|
};
|
|
|
|
namespace Ui {
|
|
class Form: public Ui_Form {};
|
|
} // namespace Ui
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // GRIDALIGNMENT_H
|