Computer Assited Medical Intervention Tool Kit  version 5.0
qtvariantproperty.h
Go to the documentation of this file.
1 /****************************************************************************
2 **
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 **
6 ** Contact: Nokia Corporation (qt-info@nokia.com)
7 **
8 ** This file is part of a Qt Solutions component.
9 **
10 ** You may use this file under the terms of the BSD license as follows:
11 **
12 ** "Redistribution and use in source and binary forms, with or without
13 ** modification, are permitted provided that the following conditions are
14 ** met:
15 ** * Redistributions of source code must retain the above copyright
16 ** notice, this list of conditions and the following disclaimer.
17 ** * Redistributions in binary form must reproduce the above copyright
18 ** notice, this list of conditions and the following disclaimer in
19 ** the documentation and/or other materials provided with the
20 ** distribution.
21 ** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
22 ** the names of its contributors may be used to endorse or promote
23 ** products derived from this software without specific prior written
24 ** permission.
25 **
26 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
29 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
30 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
31 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
32 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
33 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
34 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
35 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
36 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
37 **
38 ****************************************************************************/
39 
40 
41 #ifndef QTVARIANTPROPERTY_H
42 #define QTVARIANTPROPERTY_H
43 
44 #include "qtpropertybrowser.h"
45 #include <QtCore/QVariant>
46 #include <QtGui/QIcon>
47 
48 #if QT_VERSION >= 0x040400
49 QT_BEGIN_NAMESPACE
50 #endif
51 
52 class QRegularExpression;
53 
54 typedef QMap<int, QIcon> QtIconMap;
55 
58 
98 public:
99  ~QtVariantProperty() override;
100  QVariant value() const;
101  QVariant attributeValue(const QString& attribute) const;
102  int valueType() const;
103  int propertyType() const;
104 
105  void setValue(const QVariant& value);
106  void setAttribute(const QString& attribute, const QVariant& value);
107  // Added in CamiTK for enum icon management
108  virtual void setAttribute(const QString& attribute, const QMap<int, QIcon>& value);
109 
110 protected:
112 private:
115 };
116 
118 
120  Q_OBJECT
121 public:
122  QtVariantPropertyManager(QObject* parent = nullptr);
123  ~QtVariantPropertyManager() override;
124 
125  virtual QtVariantProperty* addProperty(int propertyType, const QString& name = QString());
126 
127  int propertyType(const QtProperty* property) const;
128  int valueType(const QtProperty* property) const;
129  QtVariantProperty* variantProperty(const QtProperty* property) const;
130 
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;
135 
136  virtual QVariant value(const QtProperty* property) const;
137  virtual QVariant attributeValue(const QtProperty* property, const QString& attribute) const;
138 
139  static int enumTypeId();
140  static int flagTypeId();
141  static int groupTypeId();
142  static int iconMapTypeId();
143 public Q_SLOTS:
144  virtual void setValue(QtProperty* property, const QVariant& val);
145  virtual void setAttribute(QtProperty* property,
146  const QString& attribute, const QVariant& value);
147  // Added in CamiTK for enum icon management
148  virtual void setAttribute(QtProperty* property,
149  const QString& attribute, const QMap<int, QIcon>& value);
150 Q_SIGNALS:
151  void valueChanged(QtProperty* property, const QVariant& val);
152  void attributeChanged(QtProperty* property,
153  const QString& attribute, const QVariant& val);
154 protected:
155  bool hasValue(const QtProperty* property) const override;
156  QString valueText(const QtProperty* property) const override;
157  QIcon valueIcon(const QtProperty* property) const override;
158  void initializeProperty(QtProperty* property) override;
159  void uninitializeProperty(QtProperty* property) override;
160  QtProperty* createProperty() override;
161 private:
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&))
199 
200  Q_PRIVATE_SLOT(d_func(), void slotPropertyInserted(QtProperty*, QtProperty*, QtProperty*))
201  Q_PRIVATE_SLOT(d_func(), void slotPropertyRemoved(QtProperty*, QtProperty*))
202  Q_DECLARE_PRIVATE(QtVariantPropertyManager)
203 #if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
204  Q_DISABLE_COPY_MOVE(QtVariantPropertyManager)
205 #else
206  Q_DISABLE_COPY(QtVariantPropertyManager)
207 #endif
208 };
209 
211 
213  Q_OBJECT
214 public:
215  QtVariantEditorFactory(QObject* parent = nullptr);
216  ~QtVariantEditorFactory() override;
217 protected:
218  void connectPropertyManager(QtVariantPropertyManager* manager) override;
219  QWidget* createEditor(QtVariantPropertyManager* manager, QtProperty* property,
220  QWidget* parent) override;
221  void disconnectPropertyManager(QtVariantPropertyManager* manager) override;
222 private:
224  Q_DECLARE_PRIVATE(QtVariantEditorFactory)
225 #if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
226  Q_DISABLE_COPY_MOVE(QtVariantEditorFactory)
227 #else
228  Q_DISABLE_COPY(QtVariantEditorFactory)
229 #endif
230 };
231 
232 #if QT_VERSION >= 0x040400
233 QT_END_NAMESPACE
234 #endif
235 
236 Q_DECLARE_METATYPE(QIcon)
237 Q_DECLARE_METATYPE(QtIconMap)
238 #endif
QtRectPropertyManager
The QtRectPropertyManager provides and manages QRect properties.
Definition: qtpropertymanager.h:570
QtProperty::setStatusTip
void setStatusTip(const QString &text)
Definition: qtpropertybrowser.cpp:318
QtAbstractPropertyManager::addProperty
QtProperty * addProperty(const QString &name=QString())
Definition: qtpropertybrowser.cpp:748
QtVariantEditorFactory::d_ptr
QtVariantEditorFactoryPrivate * d_ptr
Definition: qtvariantproperty.h:223
QtVector3DPropertyManager
The QtVector3DPropertyManager provides and manages QVector3D properties.
Definition: qtpropertymanager.h:645
QtVariantEditorFactoryPrivate::m_fontEditorFactory
QtFontEditorFactory * m_fontEditorFactory
Definition: qtvariantproperty.cpp:2044
QtPointPropertyManager
The QtPointPropertyManager provides and manages QPoint properties.
Definition: qtpropertymanager.h:424
QtVariantPropertyManager::attributes
virtual QStringList attributes(int propertyType) const
Definition: qtvariantproperty.cpp:1608
QtFlagPropertyType
Definition: qtvariantproperty.cpp:63
QtVariantPropertyManagerPrivate::slotEnumChanged
void slotEnumChanged(QtProperty *property, int val)
QtIntPropertyManager
The QtIntPropertyManager provides and manages int properties.
Definition: qtpropertymanager.h:92
QtSizePolicyPropertyManager::subEnumPropertyManager
QtEnumPropertyManager * subEnumPropertyManager() const
Definition: qtpropertymanager.cpp:5824
QtAbstractPropertyManager::propertyRemoved
void propertyRemoved(QtProperty *property, QtProperty *parent)
QtProperty::subProperties
QList< QtProperty * > subProperties() const
Definition: qtpropertybrowser.cpp:189
QtColorEditorFactory
The QtColorEditorFactory class provides color editing for properties created by QtColorPropertyManage...
Definition: qteditorfactory.h:403
QtSizeFPropertyManager
The QtSizeFPropertyManager provides and manages QSizeF properties.
Definition: qtpropertymanager.h:529
QtVariantPropertyManager::valueText
QString valueText(const QtProperty *property) const override
Definition: qtvariantproperty.cpp:1944
QtGroupPropertyType
Definition: qtvariantproperty.cpp:67
QtVariantPropertyManagerPrivate::m_enumIconsAttribute
const QString m_enumIconsAttribute
Definition: qtvariantproperty.cpp:362
QtVariantPropertyPrivate::QtVariantPropertyPrivate
QtVariantPropertyPrivate(QtVariantPropertyManager *m)
Definition: qtvariantproperty.cpp:142
QtVariantProperty::valueType
int valueType() const
Definition: qtvariantproperty.cpp:235
QtVariantPropertyManager::slotConstraintChanged
void void void void void void void void void void void void void void void void void void void void void void void void void void slotConstraintChanged(QtProperty *, const QRect &)) Q_PRIVATE_SLOT(d_func()
QtVariantEditorFactoryPrivate::m_cursorEditorFactory
QtCursorEditorFactory * m_cursorEditorFactory
Definition: qtvariantproperty.cpp:2042
QtVariantPropertyManagerPrivate::m_regExpAttribute
const QString m_regExpAttribute
Definition: qtvariantproperty.cpp:367
QtDateTimeEditFactory
The QtDateTimeEditFactory class provides QDateTimeEdit widgets for properties created by QtDateTimePr...
Definition: qteditorfactory.h:274
QtCharEditorFactory
The QtCharEditorFactory class provides editor widgets for properties created by QtCharPropertyManager...
Definition: qteditorfactory.h:324
wrappedProperty
static QtProperty * wrappedProperty(QtProperty *property)
Definition: qtvariantproperty.cpp:136
QtVariantPropertyManagerPrivate::m_minimumAttribute
const QString m_minimumAttribute
Definition: qtvariantproperty.cpp:366
qteditorfactory.h
QtAbstractPropertyManager::createProperty
virtual QtProperty * createProperty()
Definition: qtpropertybrowser.cpp:767
QtVariantPropertyManager::valueIcon
QIcon valueIcon(const QtProperty *property) const override
Definition: qtvariantproperty.cpp:1952
QT_QTPROPERTYBROWSER_EXPORT
#define QT_QTPROPERTYBROWSER_EXPORT
Definition: qtpropertybrowser.h:59
QtAbstractEditorFactory::addPropertyManager
void addPropertyManager(PropertyManager *manager)
Definition: qtpropertybrowser.h:220
QtVariantPropertyManager::variantProperty
QtVariantProperty * variantProperty(const QtProperty *property) const
Definition: qtvariantproperty.cpp:1286
QtCursorEditorFactory
The QtCursorEditorFactory class provides QComboBox widgets for properties created by QtCursorProperty...
Definition: qteditorfactory.h:378
QtVariantPropertyManagerPrivate::m_internalToProperty
QMap< QtProperty *, QtVariantProperty * > m_internalToProperty
Definition: qtvariantproperty.cpp:357
QtVariantPropertyManager::valueChanged
void valueChanged(QtProperty *property, const QVariant &val)
QtVariantPropertyManager::enumTypeId
static int enumTypeId()
Definition: qtvariantproperty.cpp:91
QtStringPropertyManager
The QtStringPropertyManager provides and manages QString properties.
Definition: qtpropertymanager.h:207
QtFlagPropertyManager
The QtFlagPropertyManager provides and manages flag properties.
Definition: qtpropertymanager.h:715
QtVariantProperty::~QtVariantProperty
~QtVariantProperty() override
Definition: qtvariantproperty.cpp:204
QtVariantPropertyManager::slotPropertyInserted
void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void slotPropertyInserted(QtProperty *, QtProperty *, QtProperty *)) Q_PRIVATE_SLOT(d_func()
QtVariantPropertyManagerPrivate::internalPropertyToType
int internalPropertyToType(QtProperty *property) const
Definition: qtvariantproperty.cpp:384
QtVariantPropertyManager
The QtVariantPropertyManager class provides and manages QVariant based properties.
Definition: qtvariantproperty.h:119
QtVariantPropertyPrivate
Definition: qtvariantproperty.cpp:140
QtAbstractEditorFactory::createEditor
QWidget * createEditor(QtProperty *property, QWidget *parent) override
Definition: qtpropertybrowser.h:210
QtDoubleSpinBoxFactory
The QtDoubleSpinBoxFactory class provides QDoubleSpinBox widgets for properties created by QtDoublePr...
Definition: qteditorfactory.h:167
QtFontPropertyManager::subBoolPropertyManager
QtBoolPropertyManager * subBoolPropertyManager() const
Definition: qtpropertymanager.cpp:6252
QtVariantProperty::d_ptr
QtVariantPropertyPrivate * d_ptr
Definition: qtvariantproperty.h:114
QtProperty
The QtProperty class encapsulates an instance of a property.
Definition: qtpropertybrowser.h:113
QtVariantEditorFactoryPrivate::m_comboBoxFactory
QtEnumEditorFactory * m_comboBoxFactory
Definition: qtvariantproperty.cpp:2041
QtVariantPropertyManagerPrivate::slotDecimalsChanged
void slotDecimalsChanged(QtProperty *property, int prec)
Definition: qtvariantproperty.cpp:514
QtVariantPropertyManager::slotEnumNamesChanged
void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void slotEnumNamesChanged(QtProperty *, const QStringList &)) Q_PRIVATE_SLOT(d_func()
QtVariantPropertyManager::QtVariantPropertyManager
QtVariantPropertyManager(QObject *parent=nullptr)
Definition: qtvariantproperty.cpp:911
QtTimePropertyManager
The QtTimePropertyManager provides and manages QTime properties.
Definition: qtpropertymanager.h:279
QtVariantPropertyManager::flagTypeId
static int flagTypeId()
Definition: qtvariantproperty.cpp:104
QtVariantPropertyManager::value
virtual QVariant value(const QtProperty *property) const
Definition: qtvariantproperty.cpp:1348
QtVariantPropertyManager::propertyType
int propertyType(const QtProperty *property) const
Definition: qtvariantproperty.cpp:1454
QtVariantPropertyManagerPrivate::m_creatingSubProperties
bool m_creatingSubProperties
Definition: qtvariantproperty.cpp:297
QtVariantPropertyManager::iconMapTypeId
static int iconMapTypeId()
Definition: qtvariantproperty.cpp:129
QtGroupPropertyManager
The description of this class will come soon !
Definition: qtpropertymanager.h:73
qtpropertybrowser.h
QtVariantEditorFactoryPrivate
Definition: qtvariantproperty.cpp:2027
QtFontPropertyManager::subEnumPropertyManager
QtEnumPropertyManager * subEnumPropertyManager() const
Definition: qtpropertymanager.cpp:6238
QtFontPropertyManager
The QtFontPropertyManager provides and manages QFont properties.
Definition: qtpropertymanager.h:784
EchoMode
QLineEdit::EchoMode EchoMode
Definition: qtpropertybrowser.h:62
QtVariantPropertyManager::addProperty
virtual QtVariantProperty * addProperty(int propertyType, const QString &name=QString())
Definition: qtvariantproperty.cpp:1321
QtAbstractPropertyManager::hasValue
virtual bool hasValue(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:680
QtSizePropertyManager
The QtSizePropertyManager provides and manages QSize properties.
Definition: qtpropertymanager.h:491
QtVariantEditorFactoryPrivate::m_dateTimeEditFactory
QtDateTimeEditFactory * m_dateTimeEditFactory
Definition: qtvariantproperty.cpp:2038
QtAbstractEditorFactoryBase::createEditor
virtual QWidget * createEditor(QtProperty *property, QWidget *parent)=0
QtProperty::setWhatsThis
void setWhatsThis(const QString &text)
Definition: qtpropertybrowser.cpp:332
QtVariantPropertyManager::slotEchoModeChanged
void void void void void void void void void void slotEchoModeChanged(QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
QtEnumPropertyType
Definition: qtvariantproperty.cpp:59
QtDatePropertyManager
The QtDatePropertyManager provides and manages QDate properties.
Definition: qtpropertymanager.h:245
QtVariantPropertyManager::attributeType
virtual int attributeType(int propertyType, const QString &attribute) const
Definition: qtvariantproperty.cpp:1627
QtVariantPropertyManagerPrivate::m_propertyToType
QMap< const QtProperty *, QPair< QtVariantProperty *, int > > m_propertyToType
Definition: qtvariantproperty.cpp:352
QtVariantProperty
The QtVariantProperty class is a convenience class handling QVariant based properties.
Definition: qtvariantproperty.h:97
QtVariantPropertyManagerPrivate::slotPropertyInserted
void slotPropertyInserted(QtProperty *property, QtProperty *parent, QtProperty *after)
Definition: qtvariantproperty.cpp:438
QtCharPropertyManager
The QtCharPropertyManager provides and manages QChar properties.
Definition: qtpropertymanager.h:363
QtAbstractEditorFactoryBase
The QtAbstractEditorFactoryBase provides an interface for editor factories.
Definition: qtpropertybrowser.h:191
QtVariantPropertyManagerPrivate::m_creatingProperty
bool m_creatingProperty
Definition: qtvariantproperty.cpp:296
QtVariantPropertyManagerPrivate::valueChanged
void valueChanged(QtProperty *property, const QVariant &val)
Definition: qtvariantproperty.cpp:471
QtFontEditorFactory
The QtFontEditorFactory class provides font editing for properties created by QtFontPropertyManager o...
Definition: qteditorfactory.h:428
QtSpinBoxFactory
The description of this class will come soon !
Definition: qteditorfactory.h:61
QtVariantPropertyManagerPrivate::m_propertyType
int m_propertyType
Definition: qtvariantproperty.cpp:299
QtDateEditFactory
The QtDateEditFactory class provides QDateEdit widgets for properties created by QtDatePropertyManage...
Definition: qteditorfactory.h:222
QtVariantPropertyManagerPrivate::m_echoModeAttribute
const QString m_echoModeAttribute
Definition: qtvariantproperty.cpp:368
QtProperty::valueText
QString valueText() const
Definition: qtpropertybrowser.cpp:283
QtVariantPropertyManagerPrivate::createSubProperty
QtVariantProperty * createSubProperty(QtVariantProperty *parent, QtVariantProperty *after, QtProperty *internal)
Definition: qtvariantproperty.cpp:402
QtVariantPropertyManagerPrivate::q_ptr
QtVariantPropertyManager * q_ptr
Definition: qtvariantproperty.cpp:291
QtAbstractPropertyManager::valueIcon
virtual QIcon valueIcon(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:694
QtVariantPropertyManager::initializeProperty
void initializeProperty(QtProperty *property) override
Definition: qtvariantproperty.cpp:1960
QtRectFPropertyManager
The QtRectFPropertyManager provides and manages QRectF properties.
Definition: qtpropertymanager.h:605
QtProperty::setToolTip
void setToolTip(const QString &text)
Definition: qtpropertybrowser.cpp:304
QtVariantPropertyManagerPrivate::m_constraintAttribute
const QString m_constraintAttribute
Definition: qtvariantproperty.cpp:359
QtVariantPropertyManager::setValue
virtual void setValue(QtProperty *property, const QVariant &val)
Definition: qtvariantproperty.cpp:1654
QtColorPropertyManager::subIntPropertyManager
QtIntPropertyManager * subIntPropertyManager() const
Definition: qtpropertymanager.cpp:6589
QtDoublePropertyManager
The QtDoublePropertyManager provides and manages double properties.
Definition: qtpropertymanager.h:164
qtvariantproperty.h
QtVariantPropertyManagerPrivate::m_typeToPropertyManager
QMap< int, QtAbstractPropertyManager * > m_typeToPropertyManager
Definition: qtvariantproperty.cpp:349
QtVariantPropertyManager::slotSingleStepChanged
void void slotSingleStepChanged(QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
QtAbstractEditorFactory
The QtAbstractEditorFactory is the base template class for editor factories.
Definition: qtpropertybrowser.h:207
QtAbstractPropertyManager::clear
void clear() const
Definition: qtpropertybrowser.cpp:656
QtVariantEditorFactory::connectPropertyManager
void connectPropertyManager(QtVariantPropertyManager *manager) override
Definition: qtvariantproperty.cpp:2181
QtBoolPropertyManager
The QtBoolPropertyManager class provides and manages boolean properties.
Definition: qtpropertymanager.h:132
QtVariantPropertyManager::~QtVariantPropertyManager
~QtVariantPropertyManager() override
Definition: qtvariantproperty.cpp:1273
QtVariantPropertyManagerPrivate::m_maximumAttribute
const QString m_maximumAttribute
Definition: qtvariantproperty.cpp:365
QtVariantPropertyManager::attributeChanged
void attributeChanged(QtProperty *property, const QString &attribute, const QVariant &val)
QtVariantPropertyManagerPrivate::removeSubProperty
void removeSubProperty(QtVariantProperty *property)
Definition: qtvariantproperty.cpp:428
QtProperty::insertSubProperty
void insertSubProperty(QtProperty *property, QtProperty *afterProperty)
Definition: qtpropertybrowser.cpp:414
QtSizePolicyPropertyManager::subIntPropertyManager
QtIntPropertyManager * subIntPropertyManager() const
Definition: qtpropertymanager.cpp:5810
QtLineEditFactory
The QtLineEditFactory class provides QLineEdit widgets for properties created by QtStringPropertyMana...
Definition: qteditorfactory.h:195
QtVariantPropertyManagerPrivate
Definition: qtvariantproperty.cpp:290
QtVariantEditorFactory
The QtVariantEditorFactory class provides widgets for properties created by QtVariantPropertyManager ...
Definition: qtvariantproperty.h:212
QtVariantPropertyManager::hasValue
bool hasValue(const QtProperty *property) const override
Definition: qtvariantproperty.cpp:1934
QtVariantPropertyManager::slotValueChanged
void void void slotValueChanged(QtProperty *, double)) Q_PRIVATE_SLOT(d_func()
QtVariantEditorFactoryPrivate::m_dateEditFactory
QtDateEditFactory * m_dateEditFactory
Definition: qtvariantproperty.cpp:2036
QtAbstractPropertyManager::propertyChanged
void propertyChanged(QtProperty *property)
QtVariantPropertyManagerPrivate::m_singleStepAttribute
const QString m_singleStepAttribute
Definition: qtvariantproperty.cpp:360
QtVariantPropertyManager::setAttribute
virtual void setAttribute(QtProperty *property, const QString &attribute, const QVariant &value)
Definition: qtvariantproperty.cpp:1782
QtVariantEditorFactoryPrivate::m_factoryToType
QMap< QtAbstractEditorFactoryBase *, int > m_factoryToType
Definition: qtvariantproperty.cpp:2046
QtVariantPropertyManagerPrivate::slotFlagNamesChanged
void slotFlagNamesChanged(QtProperty *property, const QStringList &flagNames)
Definition: qtvariantproperty.cpp:660
QtDateTimePropertyManager
The QtDateTimePropertyManager provides and manages QDateTime properties.
Definition: qtpropertymanager.h:307
QtVariantPropertyManager::slotRegExpChanged
void void void void void void void void void slotRegExpChanged(QtProperty *, const QRegularExpression &)) Q_PRIVATE_SLOT(d_func()
QtVariantEditorFactoryPrivate::m_checkBoxFactory
QtCheckBoxFactory * m_checkBoxFactory
Definition: qtvariantproperty.cpp:2034
QtVariantPropertyManagerPrivate::slotEnumNamesChanged
void slotEnumNamesChanged(QtProperty *property, const QStringList &enumNames)
Definition: qtvariantproperty.cpp:632
QtVariantEditorFactory::QtVariantEditorFactory
QtVariantEditorFactory(QObject *parent=nullptr)
Definition: qtvariantproperty.cpp:2110
QtVariantPropertyManagerPrivate::slotPropertyRemoved
void slotPropertyRemoved(QtProperty *property, QtProperty *parent)
Definition: qtvariantproperty.cpp:460
QtKeySequenceEditorFactory
The QtKeySequenceEditorFactory class provides editor widgets for properties created by QtKeySequenceP...
Definition: qteditorfactory.h:299
QtVariantPropertyManagerPrivate::slotSingleStepChanged
void slotSingleStepChanged(QtProperty *property, int step)
Definition: qtvariantproperty.cpp:491
QtSizePolicyPropertyManager
The QtSizePolicyPropertyManager provides and manages QSizePolicy properties.
Definition: qtpropertymanager.h:750
QtProperty::valueIcon
QIcon valueIcon() const
Definition: qtpropertybrowser.cpp:271
QtAbstractPropertyManager
The QtAbstractPropertyManager provides an interface for property managers.
Definition: qtpropertybrowser.h:153
QtVariantPropertyManager::slotDecimalsChanged
void void void void void void slotDecimalsChanged(QtProperty *, int)) Q_PRIVATE_SLOT(d_func()
QtVariantEditorFactoryPrivate::m_colorEditorFactory
QtColorEditorFactory * m_colorEditorFactory
Definition: qtvariantproperty.cpp:2043
QtVariantPropertyManagerPrivate::m_typeToAttributeToAttributeType
QMap< int, QMap< QString, int > > m_typeToAttributeToAttributeType
Definition: qtvariantproperty.cpp:350
PropertyMap
QMap< const QtProperty *, QtProperty * > PropertyMap
Definition: qtvariantproperty.cpp:133
QtVariantPropertyManagerPrivate::QtVariantPropertyManagerPrivate
QtVariantPropertyManagerPrivate()
Definition: qtvariantproperty.cpp:371
QtVariantEditorFactoryPrivate::m_charEditorFactory
QtCharEditorFactory * m_charEditorFactory
Definition: qtvariantproperty.cpp:2040
QtVariantProperty::setValue
void setValue(const QVariant &value)
Definition: qtvariantproperty.cpp:263
QtCursorPropertyManager
The QtCursorPropertyManager provides and manages QCursor properties.
Definition: qtpropertymanager.h:856
QtVariantPropertyManagerPrivate::slotValueChanged
void slotValueChanged(QtProperty *property, int val)
Definition: qtvariantproperty.cpp:480
QtVariantEditorFactory::~QtVariantEditorFactory
~QtVariantEditorFactory() override
Definition: qtvariantproperty.cpp:2172
QtVariantEditorFactoryPrivate::m_keySequenceEditorFactory
QtKeySequenceEditorFactory * m_keySequenceEditorFactory
Definition: qtvariantproperty.cpp:2039
QtVariantPropertyManagerPrivate::m_enumNamesAttribute
const QString m_enumNamesAttribute
Definition: qtvariantproperty.cpp:363
QtVariantPropertyManagerPrivate::m_typeToValueType
QMap< int, int > m_typeToValueType
Definition: qtvariantproperty.cpp:354
QtAbstractEditorFactory::connectPropertyManager
virtual void connectPropertyManager(PropertyManager *manager)=0
QtVariantPropertyManagerPrivate::slotConstraintChanged
void slotConstraintChanged(QtProperty *property, const QRect &val)
Definition: qtvariantproperty.cpp:612
QtAbstractEditorFactory::removePropertyManager
void removePropertyManager(PropertyManager *manager)
Definition: qtpropertybrowser.h:229
QtEnumPropertyManager
The QtEnumPropertyManager provides and manages enum properties.
Definition: qtpropertymanager.h:680
QtIconMap
QMap< int, QIcon > QtIconMap
Definition: qtvariantproperty.h:52
QtVariantPropertyManager::slotRangeChanged
void slotRangeChanged(QtProperty *, int, int)) Q_PRIVATE_SLOT(d_func()
QtVariantPropertyManager::createProperty
QtProperty * createProperty() override
Definition: qtvariantproperty.cpp:2014
QtVariantEditorFactory::disconnectPropertyManager
void disconnectPropertyManager(QtVariantPropertyManager *manager) override
Definition: qtvariantproperty.cpp:2343
QtVariantPropertyManagerPrivate::slotEnumIconsChanged
void slotEnumIconsChanged(QtProperty *property, const QMap< int, QIcon > &enumIcons)
Definition: qtvariantproperty.cpp:638
QtVariantPropertyManagerPrivate::slotRangeChanged
void slotRangeChanged(QtProperty *property, int min, int max)
Definition: qtvariantproperty.cpp:484
QtVariantPropertyManagerPrivate::slotEchoModeChanged
void slotEchoModeChanged(QtProperty *property, int)
Definition: qtvariantproperty.cpp:534
QtVariantPropertyManagerPrivate::m_decimalsAttribute
const QString m_decimalsAttribute
Definition: qtvariantproperty.cpp:361
QtVariantProperty::QtVariantProperty
QtVariantProperty(QtVariantPropertyManager *manager)
Definition: qtvariantproperty.cpp:194
QtAbstractEditorFactory::disconnectPropertyManager
virtual void disconnectPropertyManager(PropertyManager *manager)=0
QtFontPropertyManager::subIntPropertyManager
QtIntPropertyManager * subIntPropertyManager() const
Definition: qtpropertymanager.cpp:6225
QtCheckBoxFactory
The QtCheckBoxFactory class provides QCheckBox widgets for properties created by QtBoolPropertyManage...
Definition: qteditorfactory.h:142
QtProperty::displayText
QString displayText() const
Definition: qtpropertybrowser.cpp:295
QtProperty::setPropertyName
void setPropertyName(const QString &text)
Definition: qtpropertybrowser.cpp:348
QtVariantPropertyManagerPrivate::m_destroyingSubProperties
bool m_destroyingSubProperties
Definition: qtvariantproperty.cpp:298
QtKeySequencePropertyManager
The QtKeySequencePropertyManager provides and manages QKeySequence properties.
Definition: qtpropertymanager.h:335
QtVariantPropertyManager::valueType
int valueType(const QtProperty *property) const
Definition: qtvariantproperty.cpp:1432
QtTimeEditFactory
The QtTimeEditFactory class provides QTimeEdit widgets for properties created by QtTimePropertyManage...
Definition: qteditorfactory.h:249
QtProperty::propertyManager
QtAbstractPropertyManager * propertyManager() const
Definition: qtpropertybrowser.cpp:196
QtVariantPropertyManager::slotEnumIconsChanged
void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void slotEnumIconsChanged(QtProperty *, const QMap< int, QIcon > &)) Q_PRIVATE_SLOT(d_func()
QtVariantProperty::setAttribute
void setAttribute(const QString &attribute, const QVariant &value)
Definition: qtvariantproperty.cpp:276
QtAbstractPropertyManager::propertyInserted
void propertyInserted(QtProperty *property, QtProperty *parent, QtProperty *after)
QtVariantEditorFactoryPrivate::m_spinBoxFactory
QtSpinBoxFactory * m_spinBoxFactory
Definition: qtvariantproperty.cpp:2032
QtVariantEditorFactoryPrivate::m_doubleSpinBoxFactory
QtDoubleSpinBoxFactory * m_doubleSpinBoxFactory
Definition: qtvariantproperty.cpp:2033
QtVariantProperty::attributeValue
QVariant attributeValue(const QString &attribute) const
Definition: qtvariantproperty.cpp:226
QtVariantPropertyManagerPrivate::slotFlagChanged
void slotFlagChanged(QtProperty *property, int val)
QtVariantPropertyManager::isPropertyTypeSupported
virtual bool isPropertyTypeSupported(int propertyType) const
Definition: qtvariantproperty.cpp:1300
QtVariantEditorFactoryPrivate::m_timeEditFactory
QtTimeEditFactory * m_timeEditFactory
Definition: qtvariantproperty.cpp:2037
QtAbstractPropertyManager::uninitializeProperty
virtual void uninitializeProperty(QtProperty *property)
Definition: qtpropertybrowser.cpp:799
QtAbstractPropertyManager::initializeProperty
virtual void initializeProperty(QtProperty *property)=0
QtAbstractPropertyManager::valueText
virtual QString valueText(const QtProperty *property) const
Definition: qtpropertybrowser.cpp:708
QtEnumEditorFactory
The QtEnumEditorFactory class provides QComboBox widgets for properties created by QtEnumPropertyMana...
Definition: qteditorfactory.h:349
QtVariantPropertyManagerPrivate::m_flagNamesAttribute
const QString m_flagNamesAttribute
Definition: qtvariantproperty.cpp:364
QtVariantProperty::value
QVariant value() const
Definition: qtvariantproperty.cpp:213
QtVariantPropertyManager::groupTypeId
static int groupTypeId()
Definition: qtvariantproperty.cpp:117
QtVariantEditorFactoryPrivate::q_ptr
QtVariantEditorFactory * q_ptr
Definition: qtvariantproperty.cpp:2028
QtVariantProperty::propertyType
int propertyType() const
Definition: qtvariantproperty.cpp:249
QtPointFPropertyManager
The QtPointFPropertyManager provides and manages QPointF properties.
Definition: qtpropertymanager.h:456
QtVariantPropertyManagerPrivate::slotRegExpChanged
void slotRegExpChanged(QtProperty *property, const QRegularExpression &regExp)
Definition: qtvariantproperty.cpp:528
QtVariantEditorFactory::createEditor
QWidget * createEditor(QtVariantPropertyManager *manager, QtProperty *property, QWidget *parent) override
Definition: qtvariantproperty.cpp:2328
QtVariantPropertyPrivate::manager
QtVariantPropertyManager * manager
Definition: qtvariantproperty.cpp:144
QtVariantEditorFactoryPrivate::m_typeToFactory
QMap< int, QtAbstractEditorFactoryBase * > m_typeToFactory
Definition: qtvariantproperty.cpp:2047
QtVariantEditorFactoryPrivate::m_lineEditFactory
QtLineEditFactory * m_lineEditFactory
Definition: qtvariantproperty.cpp:2035
QtVariantPropertyManager::slotFlagNamesChanged
void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void void slotFlagNamesChanged(QtProperty *, const QStringList &)) Q_PRIVATE_SLOT(d_func()
QtLocalePropertyManager
The QtLocalePropertyManager provides and manages QLocale properties.
Definition: qtpropertymanager.h:392
QtVariantPropertyManager::attributeValue
virtual QVariant attributeValue(const QtProperty *property, const QString &attribute) const
Definition: qtvariantproperty.cpp:1472
qtpropertymanager.h
QtVariantPropertyManager::uninitializeProperty
void uninitializeProperty(QtProperty *property) override
Definition: qtvariantproperty.cpp:1991
QtVariantPropertyManager::d_ptr
QtVariantPropertyManagerPrivate * d_ptr
Definition: qtvariantproperty.h:162
QtColorPropertyManager
The QtColorPropertyManager provides and manages QColor properties.
Definition: qtpropertymanager.h:823