da3cb1deb6
Add a enum and formatting for member function pointer based connections. Now preferably use member function pointer for Qt classes or parameterless connections. This should not require qOverload() within Qt classes after the Signal/Slot disambiguation. Add command line option to force either syntax for all connections. Task-number: QTBUG-76375 Change-Id: Icdb4051e1173172a71cd536bdbc7d1ab1edf267d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
130 lines
5.0 KiB
C++
130 lines
5.0 KiB
C++
/********************************************************************************
|
|
** Form generated from reading UI file 'newdynamicpropertydialog.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 NEWDYNAMICPROPERTYDIALOG_H
|
|
#define NEWDYNAMICPROPERTYDIALOG_H
|
|
|
|
#include <QtCore/QVariant>
|
|
#include <QtWidgets/QAbstractButton>
|
|
#include <QtWidgets/QApplication>
|
|
#include <QtWidgets/QComboBox>
|
|
#include <QtWidgets/QDialog>
|
|
#include <QtWidgets/QDialogButtonBox>
|
|
#include <QtWidgets/QFormLayout>
|
|
#include <QtWidgets/QHBoxLayout>
|
|
#include <QtWidgets/QLabel>
|
|
#include <QtWidgets/QLineEdit>
|
|
#include <QtWidgets/QSpacerItem>
|
|
#include <QtWidgets/QVBoxLayout>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
namespace qdesigner_internal {
|
|
|
|
class Ui_NewDynamicPropertyDialog
|
|
{
|
|
public:
|
|
QVBoxLayout *verticalLayout;
|
|
QFormLayout *formLayout;
|
|
QLineEdit *m_lineEdit;
|
|
QLabel *label;
|
|
QHBoxLayout *horizontalLayout;
|
|
QComboBox *m_comboBox;
|
|
QSpacerItem *horizontalSpacer;
|
|
QLabel *label_2;
|
|
QSpacerItem *spacerItem;
|
|
QDialogButtonBox *m_buttonBox;
|
|
|
|
void setupUi(QDialog *qdesigner_internal__NewDynamicPropertyDialog)
|
|
{
|
|
if (qdesigner_internal__NewDynamicPropertyDialog->objectName().isEmpty())
|
|
qdesigner_internal__NewDynamicPropertyDialog->setObjectName(QString::fromUtf8("qdesigner_internal__NewDynamicPropertyDialog"));
|
|
qdesigner_internal__NewDynamicPropertyDialog->resize(340, 118);
|
|
verticalLayout = new QVBoxLayout(qdesigner_internal__NewDynamicPropertyDialog);
|
|
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
|
formLayout = new QFormLayout();
|
|
formLayout->setObjectName(QString::fromUtf8("formLayout"));
|
|
m_lineEdit = new QLineEdit(qdesigner_internal__NewDynamicPropertyDialog);
|
|
m_lineEdit->setObjectName(QString::fromUtf8("m_lineEdit"));
|
|
m_lineEdit->setMinimumSize(QSize(220, 0));
|
|
|
|
formLayout->setWidget(0, QFormLayout::FieldRole, m_lineEdit);
|
|
|
|
label = new QLabel(qdesigner_internal__NewDynamicPropertyDialog);
|
|
label->setObjectName(QString::fromUtf8("label"));
|
|
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
|
|
sizePolicy.setHorizontalStretch(0);
|
|
sizePolicy.setVerticalStretch(0);
|
|
sizePolicy.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
|
|
label->setSizePolicy(sizePolicy);
|
|
|
|
formLayout->setWidget(0, QFormLayout::LabelRole, label);
|
|
|
|
horizontalLayout = new QHBoxLayout();
|
|
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
|
m_comboBox = new QComboBox(qdesigner_internal__NewDynamicPropertyDialog);
|
|
m_comboBox->setObjectName(QString::fromUtf8("m_comboBox"));
|
|
|
|
horizontalLayout->addWidget(m_comboBox);
|
|
|
|
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
|
|
|
horizontalLayout->addItem(horizontalSpacer);
|
|
|
|
|
|
formLayout->setLayout(1, QFormLayout::FieldRole, horizontalLayout);
|
|
|
|
label_2 = new QLabel(qdesigner_internal__NewDynamicPropertyDialog);
|
|
label_2->setObjectName(QString::fromUtf8("label_2"));
|
|
sizePolicy.setHeightForWidth(label_2->sizePolicy().hasHeightForWidth());
|
|
label_2->setSizePolicy(sizePolicy);
|
|
|
|
formLayout->setWidget(1, QFormLayout::LabelRole, label_2);
|
|
|
|
|
|
verticalLayout->addLayout(formLayout);
|
|
|
|
spacerItem = new QSpacerItem(0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding);
|
|
|
|
verticalLayout->addItem(spacerItem);
|
|
|
|
m_buttonBox = new QDialogButtonBox(qdesigner_internal__NewDynamicPropertyDialog);
|
|
m_buttonBox->setObjectName(QString::fromUtf8("m_buttonBox"));
|
|
m_buttonBox->setOrientation(Qt::Horizontal);
|
|
m_buttonBox->setStandardButtons(QDialogButtonBox::Cancel|QDialogButtonBox::Ok);
|
|
m_buttonBox->setCenterButtons(false);
|
|
|
|
verticalLayout->addWidget(m_buttonBox);
|
|
|
|
|
|
retranslateUi(qdesigner_internal__NewDynamicPropertyDialog);
|
|
|
|
QMetaObject::connectSlotsByName(qdesigner_internal__NewDynamicPropertyDialog);
|
|
} // setupUi
|
|
|
|
void retranslateUi(QDialog *qdesigner_internal__NewDynamicPropertyDialog)
|
|
{
|
|
qdesigner_internal__NewDynamicPropertyDialog->setWindowTitle(QCoreApplication::translate("qdesigner_internal::NewDynamicPropertyDialog", "Create Dynamic Property", nullptr));
|
|
label->setText(QCoreApplication::translate("qdesigner_internal::NewDynamicPropertyDialog", "Property Name", nullptr));
|
|
label_2->setText(QCoreApplication::translate("qdesigner_internal::NewDynamicPropertyDialog", "Property Type", nullptr));
|
|
} // retranslateUi
|
|
|
|
};
|
|
|
|
} // namespace qdesigner_internal
|
|
|
|
namespace qdesigner_internal {
|
|
namespace Ui {
|
|
class NewDynamicPropertyDialog: public Ui_NewDynamicPropertyDialog {};
|
|
} // namespace Ui
|
|
} // namespace qdesigner_internal
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
#endif // NEWDYNAMICPROPERTYDIALOG_H
|