41#ifndef QTVARIANTPROPERTY_H
42#define QTVARIANTPROPERTY_H
45#include <QtCore/QVariant>
48#if QT_VERSION >= 0x040400
52class QRegularExpression;
100 QVariant
value()
const;
108 virtual void setAttribute(
const QString& attribute,
const QMap<int, QIcon>&
value);
146 const QString& attribute,
const QVariant&
value);
149 const QString& attribute,
const QMap<int, QIcon>&
value);
153 const QString& attribute,
const QVariant& val);
163 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
int))
164 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty*,
int,
int))
165 Q_PRIVATE_SLOT(d_func(),
void slotSingleStepChanged(
QtProperty*,
int))
166 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
double))
167 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty*,
double,
double))
168 Q_PRIVATE_SLOT(d_func(),
void slotSingleStepChanged(
QtProperty*,
double))
169 Q_PRIVATE_SLOT(d_func(),
void slotDecimalsChanged(
QtProperty*,
int))
170 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
bool))
171 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QString&))
172 Q_PRIVATE_SLOT(d_func(),
void slotRegExpChanged(
QtProperty*,
const QRegularExpression&))
173 Q_PRIVATE_SLOT(d_func(),
void slotEchoModeChanged(
QtProperty*,
int))
174 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QDate&))
175 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty*,
const QDate&,
const QDate&))
176 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QTime&))
177 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QDateTime&))
178 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QKeySequence&))
179 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QChar&))
180 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QLocale&))
181 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QPoint&))
182 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QPointF&))
183 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QVector3D&))
184 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QSize&))
185 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty*,
const QSize&,
const QSize&))
186 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QSizeF&))
187 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty*,
const QSizeF&,
const QSizeF&))
188 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QRect&))
189 Q_PRIVATE_SLOT(d_func(),
void slotConstraintChanged(
QtProperty*,
const QRect&))
190 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QRectF&))
191 Q_PRIVATE_SLOT(d_func(),
void slotConstraintChanged(
QtProperty*,
const QRectF&))
192 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QColor&))
193 Q_PRIVATE_SLOT(d_func(),
void slotEnumNamesChanged(
QtProperty*,
const QStringList&))
194 Q_PRIVATE_SLOT(d_func(),
void slotEnumIconsChanged(
QtProperty*,
const QMap<int, QIcon>&))
195 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QSizePolicy&))
196 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QFont&))
197 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty*,
const QCursor&))
198 Q_PRIVATE_SLOT(d_func(),
void slotFlagNamesChanged(
QtProperty*,
const QStringList&))
203#if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
220 QWidget* parent)
override;
225#if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
232#if QT_VERSION >= 0x040400
236Q_DECLARE_METATYPE(QIcon)
QtAbstractEditorFactory(QObject *parent)
Definition qtpropertybrowser.h:200
QtAbstractPropertyManager(QObject *parent=nullptr)
Definition qtpropertybrowser.cpp:624
friend class QtProperty
Definition qtpropertybrowser.h:172
The QtProperty class encapsulates an instance of a property.
Definition qtpropertybrowser.h:104
bool hasValue() const
Definition qtpropertybrowser.cpp:250
QIcon valueIcon() const
Definition qtpropertybrowser.cpp:262
QString valueText() const
Definition qtpropertybrowser.cpp:274
QtProperty(QtAbstractPropertyManager *manager)
Definition qtpropertybrowser.cpp:135
Definition qtvariantproperty.cpp:1908
QWidget * createEditor(QtVariantPropertyManager *manager, QtProperty *property, QWidget *parent) override
Definition qtvariantproperty.cpp:2184
void disconnectPropertyManager(QtVariantPropertyManager *manager) override
Definition qtvariantproperty.cpp:2199
void connectPropertyManager(QtVariantPropertyManager *manager) override
Definition qtvariantproperty.cpp:2037
QtVariantEditorFactory(QObject *parent=nullptr)
Definition qtvariantproperty.cpp:1966
Definition qtvariantproperty.cpp:290
The QtVariantPropertyManager class provides and manages QVariant based properties.
Definition qtvariantproperty.h:119
static int iconMapTypeId()
Definition qtvariantproperty.cpp:129
virtual QVariant value(const QtProperty *property) const
Definition qtvariantproperty.cpp:1229
virtual QVariant attributeValue(const QtProperty *property, const QString &attribute) const
Definition qtvariantproperty.cpp:1353
void valueChanged(QtProperty *property, const QVariant &val)
void initializeProperty(QtProperty *property) override
Definition qtvariantproperty.cpp:1841
virtual int attributeType(int propertyType, const QString &attribute) const
Definition qtvariantproperty.cpp:1508
int propertyType(const QtProperty *property) const
Definition qtvariantproperty.cpp:1335
static int groupTypeId()
Definition qtvariantproperty.cpp:117
virtual void setAttribute(QtProperty *property, const QString &attribute, const QVariant &value)
Definition qtvariantproperty.cpp:1663
QtVariantPropertyManager(QObject *parent=nullptr)
Definition qtvariantproperty.cpp:792
virtual QtVariantProperty * addProperty(int propertyType, const QString &name=QString())
Definition qtvariantproperty.cpp:1202
void attributeChanged(QtProperty *property, const QString &attribute, const QVariant &val)
QtVariantProperty * variantProperty(const QtProperty *property) const
Definition qtvariantproperty.cpp:1167
int valueType(const QtProperty *property) const
Definition qtvariantproperty.cpp:1313
static int enumTypeId()
Definition qtvariantproperty.cpp:91
QtProperty * createProperty() override
Definition qtvariantproperty.cpp:1895
void uninitializeProperty(QtProperty *property) override
Definition qtvariantproperty.cpp:1872
virtual void setValue(QtProperty *property, const QVariant &val)
Definition qtvariantproperty.cpp:1535
virtual bool isPropertyTypeSupported(int propertyType) const
Definition qtvariantproperty.cpp:1181
virtual QStringList attributes(int propertyType) const
Definition qtvariantproperty.cpp:1489
static int flagTypeId()
Definition qtvariantproperty.cpp:104
Definition qtvariantproperty.cpp:140
The QtVariantProperty class is a convenience class handling QVariant based properties.
Definition qtvariantproperty.h:97
QVariant attributeValue(const QString &attribute) const
Definition qtvariantproperty.cpp:226
QVariant value() const
Definition qtvariantproperty.cpp:213
void setAttribute(const QString &attribute, const QVariant &value)
Definition qtvariantproperty.cpp:276
friend class QtVariantPropertyManager
Definition qtvariantproperty.h:113
int propertyType() const
Definition qtvariantproperty.cpp:249
void setValue(const QVariant &value)
Definition qtvariantproperty.cpp:263
QtVariantProperty(QtVariantPropertyManager *manager)
Definition qtvariantproperty.cpp:194
int valueType() const
Definition qtvariantproperty.cpp:235
#define QT_QTPROPERTYBROWSER_EXPORT
Definition qtpropertybrowser.h:59
QMap< int, QIcon > QtIconMap
Definition qtvariantproperty.h:54