20 m_dialogGui(dialogGui),
21 m_ui(
new QT_PREPEND_NAMESPACE(qdesigner_internal)::Ui::NewDynamicPropertyDialog)
24 connect(m_ui->m_lineEdit, &QLineEdit::textChanged,
this, &NewDynamicPropertyDialog::nameChanged);
25 connect(m_ui->m_buttonBox, &QDialogButtonBox::clicked,
26 this, &NewDynamicPropertyDialog::buttonBoxClicked);
28 m_ui->m_comboBox->addItem(u"String"_s,
29 QVariant(QMetaType(QMetaType::QString)));
30 m_ui->m_comboBox->addItem(u"StringList"_s,
31 QVariant(QMetaType(QMetaType::QStringList)));
32 m_ui->m_comboBox->addItem(u"Char"_s,
33 QVariant(QMetaType(QMetaType::QChar)));
34 m_ui->m_comboBox->addItem(u"ByteArray"_s,
35 QVariant(QMetaType(QMetaType::QByteArray)));
36 m_ui->m_comboBox->addItem(u"Url"_s,
37 QVariant(QMetaType(QMetaType::QUrl)));
38 m_ui->m_comboBox->addItem(u"Bool"_s,
39 QVariant(QMetaType(QMetaType::Bool)));
40 m_ui->m_comboBox->addItem(u"Int"_s,
41 QVariant(QMetaType(QMetaType::Int)));
42 m_ui->m_comboBox->addItem(u"UInt"_s,
43 QVariant(QMetaType(QMetaType::UInt)));
44 m_ui->m_comboBox->addItem(u"LongLong"_s,
45 QVariant(QMetaType(QMetaType::LongLong)));
46 m_ui->m_comboBox->addItem(u"ULongLong"_s,
47 QVariant(QMetaType(QMetaType::ULongLong)));
48 m_ui->m_comboBox->addItem(u"Double"_s,
49 QVariant(QMetaType(QMetaType::Double)));
50 m_ui->m_comboBox->addItem(u"Size"_s,
51 QVariant(QMetaType(QMetaType::QSize)));
52 m_ui->m_comboBox->addItem(u"SizeF"_s,
53 QVariant(QMetaType(QMetaType::QSizeF)));
54 m_ui->m_comboBox->addItem(u"Point"_s,
55 QVariant(QMetaType(QMetaType::QPoint)));
56 m_ui->m_comboBox->addItem(u"PointF"_s,
57 QVariant(QMetaType(QMetaType::QPointF)));
58 m_ui->m_comboBox->addItem(u"Rect"_s,
59 QVariant(QMetaType(QMetaType::QRect)));
60 m_ui->m_comboBox->addItem(u"RectF"_s,
61 QVariant(QMetaType(QMetaType::QRectF)));
62 m_ui->m_comboBox->addItem(u"Date"_s,
63 QVariant(QMetaType(QMetaType::QDate)));
64 m_ui->m_comboBox->addItem(u"Time"_s,
65 QVariant(QMetaType(QMetaType::QTime)));
66 m_ui->m_comboBox->addItem(u"DateTime"_s,
67 QVariant(QMetaType(QMetaType::QDateTime)));
68 m_ui->m_comboBox->addItem(u"Font"_s,
69 QVariant(QMetaType(QMetaType::QFont)));
70 m_ui->m_comboBox->addItem(u"Palette"_s,
71 QVariant(QMetaType(QMetaType::QPalette)));
72 m_ui->m_comboBox->addItem(u"Color"_s,
73 QVariant(QMetaType(QMetaType::QColor)));
74 m_ui->m_comboBox->addItem(u"Pixmap"_s,
75 QVariant(QMetaType(QMetaType::QPixmap)));
76 m_ui->m_comboBox->addItem(u"Icon"_s,
77 QVariant(QMetaType(QMetaType::QIcon)));
78 m_ui->m_comboBox->addItem(u"Cursor"_s,
79 QVariant(QMetaType(QMetaType::QCursor)));
80 m_ui->m_comboBox->addItem(u"SizePolicy"_s,
81 QVariant(QMetaType(QMetaType::QSizePolicy)));
82 m_ui->m_comboBox->addItem(u"KeySequence"_s,
83 QVariant(QMetaType(QMetaType::QKeySequence)));
85 m_ui->m_comboBox->setCurrentIndex(0);
86 setOkButtonEnabled(
false);