41 #ifndef QTVARIANTPROPERTY_H 42 #define QTVARIANTPROPERTY_H 45 #include <QtCore/QVariant> 46 #include <QtGui/QIcon> 48 #if QT_VERSION >= 0x040400 67 QVariant value()
const;
68 QVariant attributeValue(
const QString &attribute)
const;
69 int valueType()
const;
70 int propertyType()
const;
72 void setValue(
const QVariant &value);
73 void setAttribute(
const QString &attribute,
const QVariant &value);
91 int propertyType(
const QtProperty *property)
const;
92 int valueType(
const QtProperty *property)
const;
95 virtual bool isPropertyTypeSupported(
int propertyType)
const;
96 virtual int valueType(
int propertyType)
const;
97 virtual QStringList attributes(
int propertyType)
const;
98 virtual int attributeType(
int propertyType,
const QString &attribute)
const;
100 virtual QVariant value(
const QtProperty *property)
const;
101 virtual QVariant attributeValue(
const QtProperty *property,
const QString &attribute)
const;
103 static int enumTypeId();
104 static int flagTypeId();
105 static int groupTypeId();
106 static int iconMapTypeId();
108 virtual void setValue(
QtProperty *property,
const QVariant &val);
109 virtual void setAttribute(
QtProperty *property,
110 const QString &attribute,
const QVariant &value);
112 void valueChanged(
QtProperty *property,
const QVariant &val);
114 const QString &attribute,
const QVariant &val);
124 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
int))
125 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty *,
int,
int))
126 Q_PRIVATE_SLOT(d_func(),
void slotSingleStepChanged(
QtProperty *,
int))
127 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
double))
128 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty *,
double,
double))
129 Q_PRIVATE_SLOT(d_func(),
void slotSingleStepChanged(
QtProperty *,
double))
130 Q_PRIVATE_SLOT(d_func(),
void slotDecimalsChanged(
QtProperty *,
int))
131 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
bool))
132 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QString &))
133 Q_PRIVATE_SLOT(d_func(),
void slotRegExpChanged(
QtProperty *,
const QRegExp &))
134 Q_PRIVATE_SLOT(d_func(),
void slotEchoModeChanged(
QtProperty *,
int))
135 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QDate &))
136 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty *,
const QDate &,
const QDate &))
137 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QTime &))
138 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QDateTime &))
139 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QKeySequence &))
140 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QChar &))
141 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QLocale &))
142 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QPoint &))
143 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QPointF &))
144 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QVector3D &))
145 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QSize &))
146 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty *,
const QSize &,
const QSize &))
147 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QSizeF &))
148 Q_PRIVATE_SLOT(d_func(),
void slotRangeChanged(
QtProperty *,
const QSizeF &,
const QSizeF &))
149 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QRect &))
150 Q_PRIVATE_SLOT(d_func(),
void slotConstraintChanged(
QtProperty *,
const QRect &))
151 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QRectF &))
152 Q_PRIVATE_SLOT(d_func(),
void slotConstraintChanged(
QtProperty *,
const QRectF &))
153 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QColor &))
154 Q_PRIVATE_SLOT(d_func(),
void slotEnumNamesChanged(
QtProperty *,
const QStringList &))
155 Q_PRIVATE_SLOT(d_func(),
void slotEnumIconsChanged(
QtProperty *,
const QMap<int, QIcon> &))
156 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QSizePolicy &))
157 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QFont &))
158 Q_PRIVATE_SLOT(d_func(),
void slotValueChanged(
QtProperty *,
const QCursor &))
159 Q_PRIVATE_SLOT(d_func(),
void slotFlagNamesChanged(
QtProperty *,
const QStringList &))
185 #if QT_VERSION >= 0x040400 189 Q_DECLARE_METATYPE(QIcon)
virtual QtProperty * createProperty()
Definition: qtpropertybrowser.cpp:754
QtVariantPropertyPrivate * d_ptr
Definition: qtvariantproperty.h:78
The QtVariantPropertyManager class provides and manages QVariant based properties.
Definition: qtvariantproperty.h:83
The QtAbstractPropertyManager provides an interface for property managers.
Definition: qtpropertybrowser.h:114
The QtAbstractEditorFactory is the base template class for editor factories.
Definition: qtpropertybrowser.h:164
QtProperty * addProperty(const QString &name=QString())
Definition: qtpropertybrowser.cpp:735
virtual void initializeProperty(QtProperty *property)=0
Definition: qtvariantproperty.cpp:280
virtual void uninitializeProperty(QtProperty *property)
Definition: qtpropertybrowser.cpp:786
virtual bool hasValue(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:667
QtVariantEditorFactoryPrivate * d_ptr
Definition: qtvariantproperty.h:180
QMap< int, QIcon > QtIconMap
Definition: qtvariantproperty.h:52
Definition: qtvariantproperty.cpp:1824
Definition: qtvariantproperty.cpp:139
#define QT_QTPROPERTYBROWSER_EXPORT
Definition: qtpropertybrowser.h:59
QtVariantPropertyManagerPrivate * d_ptr
Definition: qtvariantproperty.h:123
The description of this class will come soon !
Definition: qtvariantproperty.h:64
virtual QString valueText(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:695
QWidget * createEditor(QtProperty *property, QWidget *parent)
Definition: qtpropertybrowser.h:167
The description of this class will come soon !
Definition: qtpropertybrowser.h:74
virtual void disconnectPropertyManager(PropertyManager *manager)=0
The QtVariantEditorFactory class provides widgets for properties created by QtVariantPropertyManager ...
Definition: qtvariantproperty.h:169
virtual void connectPropertyManager(PropertyManager *manager)=0
virtual QIcon valueIcon(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:681