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>
90 lines
2.6 KiB
C++
90 lines
2.6 KiB
C++
/********************************************************************************
|
|
** Form generated from reading UI file 'generalpage.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 GENERALPAGE_H
|
|
#define GENERALPAGE_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_GeneralPage
|
|
{
|
|
public:
|
|
QGridLayout *gridLayout;
|
|
QLabel *label;
|
|
QLineEdit *namespaceLineEdit;
|
|
QLabel *label_2;
|
|
QLineEdit *folderLineEdit;
|
|
QSpacerItem *spacerItem;
|
|
QSpacerItem *spacerItem1;
|
|
|
|
void setupUi(QWidget *GeneralPage)
|
|
{
|
|
if (GeneralPage->objectName().isEmpty())
|
|
GeneralPage->setObjectName("GeneralPage");
|
|
GeneralPage->resize(417, 243);
|
|
gridLayout = new QGridLayout(GeneralPage);
|
|
gridLayout->setObjectName("gridLayout");
|
|
label = new QLabel(GeneralPage);
|
|
label->setObjectName("label");
|
|
|
|
gridLayout->addWidget(label, 1, 0, 1, 1);
|
|
|
|
namespaceLineEdit = new QLineEdit(GeneralPage);
|
|
namespaceLineEdit->setObjectName("namespaceLineEdit");
|
|
|
|
gridLayout->addWidget(namespaceLineEdit, 1, 1, 1, 1);
|
|
|
|
label_2 = new QLabel(GeneralPage);
|
|
label_2->setObjectName("label_2");
|
|
|
|
gridLayout->addWidget(label_2, 2, 0, 1, 1);
|
|
|
|
folderLineEdit = new QLineEdit(GeneralPage);
|
|
folderLineEdit->setObjectName("folderLineEdit");
|
|
|
|
gridLayout->addWidget(folderLineEdit, 2, 1, 1, 1);
|
|
|
|
spacerItem = new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Fixed);
|
|
|
|
gridLayout->addItem(spacerItem, 0, 1, 1, 1);
|
|
|
|
spacerItem1 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
|
|
|
gridLayout->addItem(spacerItem1, 3, 1, 1, 1);
|
|
|
|
|
|
retranslateUi(GeneralPage);
|
|
|
|
QMetaObject::connectSlotsByName(GeneralPage);
|
|
} // setupUi
|
|
|
|
void retranslateUi(QWidget *GeneralPage)
|
|
{
|
|
GeneralPage->setWindowTitle(QCoreApplication::translate("GeneralPage", "Form", nullptr));
|
|
label->setText(QCoreApplication::translate("GeneralPage", "Namespace:", nullptr));
|
|
label_2->setText(QCoreApplication::translate("GeneralPage", "Virtual Folder:", nullptr));
|
|
} // retranslateUi
|
|
|
|
};
|
|
|
|
namespace Ui {
|
|
class GeneralPage: public Ui_GeneralPage {};
|
|
} // namespace Ui
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // GENERALPAGE_H
|