41 #ifndef QTVARIANTPROPERTY_H
42 #define QTVARIANTPROPERTY_H
45 #include <QtCore/QVariant>
46 #include <QtGui/QIcon>
48 #if QT_VERSION >= 0x040400
55 class QtVariantPropertyPrivate;
68 QVariant value()
const;
69 QVariant attributeValue(
const QString &attribute)
const;
70 int valueType()
const;
71 int propertyType()
const;
73 void setValue(
const QVariant &value);
74 void setAttribute(
const QString &attribute,
const QVariant &value);
79 QtVariantPropertyPrivate *
d_ptr;
82 class QtVariantPropertyManagerPrivate;
93 int propertyType(
const QtProperty *property)
const;
94 int valueType(
const QtProperty *property)
const;
97 virtual bool isPropertyTypeSupported(
int propertyType)
const;
98 virtual int valueType(
int propertyType)
const;
99 virtual QStringList attributes(
int propertyType)
const;
100 virtual int attributeType(
int propertyType,
const QString &attribute)
const;
102 virtual QVariant value(
const QtProperty *property)
const;
103 virtual QVariant attributeValue(
const QtProperty *property,
const QString &attribute)
const;
105 static int enumTypeId();
106 static int flagTypeId();
107 static int groupTypeId();
108 static int iconMapTypeId();
110 virtual void setValue(
QtProperty *property,
const QVariant &val);
111 virtual void setAttribute(
QtProperty *property,
112 const QString &attribute,
const QVariant &value);
114 void valueChanged(
QtProperty *property,
const QVariant &val);
116 const QString &attribute,
const QVariant &val);
125 QtVariantPropertyManagerPrivate *
d_ptr;
126 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
int))
127 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty *,
int,
int))
128 Q_PRIVATE_SLOT(d_func(),
void slotSingleStepChanged(QtProperty *,
int))
129 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *,
double))
130 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(QtProperty *,
double,
double))
131 Q_PRIVATE_SLOT(d_func(),
void slotSingleStepChanged(QtProperty *,
double))
132 Q_PRIVATE_SLOT(d_func(),
void slotDecimalsChanged(QtProperty *,
int))
133 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *,
bool))
134 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QString &))
135 Q_PRIVATE_SLOT(d_func(),
void slotRegExpChanged(QtProperty *, const QRegExp &))
136 Q_PRIVATE_SLOT(d_func(),
void slotEchoModeChanged(QtProperty *,
int))
137 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QDate &))
138 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(QtProperty *, const QDate &, const QDate &))
139 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QTime &))
140 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QDateTime &))
141 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QKeySequence &))
142 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QChar &))
143 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QLocale &))
144 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QPoint &))
145 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QPointF &))
146 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QVector3D &))
147 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QSize &))
148 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(QtProperty *, const QSize &, const QSize &))
149 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QSizeF &))
150 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(QtProperty *, const QSizeF &, const QSizeF &))
151 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QRect &))
152 Q_PRIVATE_SLOT(d_func(),
void slotConstraintChanged(QtProperty *, const QRect &))
153 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QRectF &))
154 Q_PRIVATE_SLOT(d_func(),
void slotConstraintChanged(QtProperty *, const QRectF &))
155 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QColor &))
156 Q_PRIVATE_SLOT(d_func(),
void slotEnumNamesChanged(QtProperty *, const QStringList &))
157 Q_PRIVATE_SLOT(d_func(),
void slotEnumIconsChanged(QtProperty *, const QMap<
int, QIcon> &))
158 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QSizePolicy &))
159 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QFont &))
160 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(QtProperty *, const QCursor &))
161 Q_PRIVATE_SLOT(d_func(),
void slotFlagNamesChanged(QtProperty *, const QStringList &))
163 Q_PRIVATE_SLOT(d_func(),
void slotPropertyInserted(QtProperty *, QtProperty *, QtProperty *))
164 Q_PRIVATE_SLOT(d_func(),
void slotPropertyRemoved(QtProperty *, QtProperty *))
169 class QtVariantEditorFactoryPrivate;
178 void connectPropertyManager(QtVariantPropertyManager *manager);
179 QWidget *createEditor(QtVariantPropertyManager *manager, QtProperty *property,
181 void disconnectPropertyManager(QtVariantPropertyManager *manager);
183 QtVariantEditorFactoryPrivate *
d_ptr;
188 #if QT_VERSION >= 0x040400
192 Q_DECLARE_METATYPE(QIcon)
virtual QtProperty * createProperty()
QtProperty * addProperty(const QString &name=QString())
QtVariantPropertyPrivate * d_ptr
Definition: qtvariantproperty.h:79
Definition: qtvariantproperty.h:84
Definition: qtpropertybrowser.h:115
virtual QString valueText(const QtProperty *property) const
Definition: qtpropertybrowser.h:167
virtual QIcon valueIcon(const QtProperty *property) const
QtVariantEditorFactoryPrivate * d_ptr
Definition: qtvariantproperty.h:183
QMap< int, QIcon > QtIconMap
Definition: qtvariantproperty.h:52
virtual void uninitializeProperty(QtProperty *property)
virtual void initializeProperty(QtProperty *property)=0
#define QT_QTPROPERTYBROWSER_EXPORT
Definition: qtpropertybrowser.h:59
virtual bool hasValue(const QtProperty *property) const
QtVariantPropertyManagerPrivate * d_ptr
Definition: qtvariantproperty.h:125
The description of this class will come soon !
Definition: qtvariantproperty.h:64
The description of this class will come soon !
Definition: qtpropertybrowser.h:74
Definition: qtvariantproperty.h:171