41 #ifndef QTVARIANTPROPERTY_H 
   42 #define QTVARIANTPROPERTY_H 
   45 #include <QtCore/QVariant> 
   46 #include <QtGui/QIcon> 
   48 #if QT_VERSION >= 0x040400 
   52 class QRegularExpression;
 
  100     QVariant value() 
const;
 
  101     QVariant attributeValue(
const QString& attribute) 
const;
 
  102     int valueType() 
const;
 
  103     int propertyType() 
const;
 
  105     void setValue(
const QVariant& value);
 
  106     void setAttribute(
const QString& attribute, 
const QVariant& value);
 
  108     virtual void setAttribute(
const QString& attribute, 
const QMap<int, QIcon>& value);
 
  125     virtual QtVariantProperty* addProperty(
int propertyType, 
const QString& name = QString());
 
  127     int propertyType(
const QtProperty* property) 
const;
 
  128     int valueType(
const QtProperty* property) 
const;
 
  131     virtual bool isPropertyTypeSupported(
int propertyType) 
const;
 
  132     virtual int valueType(
int propertyType) 
const;
 
  133     virtual QStringList attributes(
int propertyType) 
const;
 
  134     virtual int attributeType(
int propertyType, 
const QString& attribute) 
const;
 
  136     virtual QVariant value(
const QtProperty* property) 
const;
 
  137     virtual QVariant attributeValue(
const QtProperty* property, 
const QString& attribute) 
const;
 
  139     static int enumTypeId();
 
  140     static int flagTypeId();
 
  141     static int groupTypeId();
 
  142     static int iconMapTypeId();
 
  144     virtual void setValue(
QtProperty* property, 
const QVariant& val);
 
  145     virtual void setAttribute(
QtProperty* property,
 
  146                               const QString& attribute, 
const QVariant& value);
 
  148     virtual void setAttribute(
QtProperty* property,
 
  149                               const QString& attribute, 
const QMap<int, QIcon>& value);
 
  153                           const QString& attribute, 
const QVariant& val);
 
  158     void initializeProperty(
QtProperty* property) 
override;
 
  159     void uninitializeProperty(
QtProperty* property) 
override;
 
  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 
  236 Q_DECLARE_METATYPE(QIcon)
 
The QtAbstractEditorFactory is the base template class for editor factories.
Definition: qtpropertybrowser.h:207
 
The QtAbstractPropertyManager provides an interface for property managers.
Definition: qtpropertybrowser.h:153
 
The QtProperty class encapsulates an instance of a property.
Definition: qtpropertybrowser.h:113
 
bool hasValue() const
Definition: qtpropertybrowser.cpp:259
 
QIcon valueIcon() const
Definition: qtpropertybrowser.cpp:271
 
QString valueText() const
Definition: qtpropertybrowser.cpp:283
 
Definition: qtvariantproperty.cpp:2027
 
The QtVariantEditorFactory class provides widgets for properties created by QtVariantPropertyManager ...
Definition: qtvariantproperty.h:212
 
Definition: qtvariantproperty.cpp:290
 
The QtVariantPropertyManager class provides and manages QVariant based properties.
Definition: qtvariantproperty.h:119
 
void valueChanged(QtProperty *property, const QVariant &val)
 
void attributeChanged(QtProperty *property, const QString &attribute, const QVariant &val)
 
Definition: qtvariantproperty.cpp:140
 
The QtVariantProperty class is a convenience class handling QVariant based properties.
Definition: qtvariantproperty.h:97
 
#define QT_QTPROPERTYBROWSER_EXPORT
Definition: qtpropertybrowser.h:59
 
QMap< int, QIcon > QtIconMap
Definition: qtvariantproperty.h:52