Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtpropertybrowser_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists for the convenience
9// of Qt Designer. This header file may change from version to version
10// without notice, or even be removed.
11//
12// We mean it.
13//
14
15#ifndef QTPROPERTYBROWSER_H
16#define QTPROPERTYBROWSER_H
17
18#include <QtWidgets/QWidget>
19#include <QtCore/QSet>
20
22
25
27{
28public:
29 virtual ~QtProperty();
30
32
34
35 QString toolTip() const { return valueToolTip(); } // Compatibility
36 QString valueToolTip() const;
37 QString descriptionToolTip() const;
38 QString statusTip() const;
39 QString whatsThis() const;
40 QString propertyName() const;
41 bool isEnabled() const;
42 bool isModified() const;
43
44 bool hasValue() const;
45 QIcon valueIcon() const;
46 QString valueText() const;
47
48 void setToolTip(const QString &text) { setValueToolTip(text); } // Compatibility
49 void setValueToolTip(const QString &text);
50 void setDescriptionToolTip(const QString &text);
51 void setStatusTip(const QString &text);
52 void setWhatsThis(const QString &text);
53 void setPropertyName(const QString &text);
54 void setEnabled(bool enable);
55 void setModified(bool modified);
56
57 void addSubProperty(QtProperty *property);
58 void insertSubProperty(QtProperty *property, QtProperty *afterProperty);
59 void removeSubProperty(QtProperty *property);
60protected:
61 explicit QtProperty(QtAbstractPropertyManager *manager);
62 void propertyChanged();
63private:
65 QScopedPointer<QtPropertyPrivate> d_ptr;
66};
67
69
71{
73public:
74
77
78 QSet<QtProperty *> properties() const;
79 void clear() const;
80
81 QtProperty *addProperty(const QString &name = QString());
84 void propertyChanged(QtProperty *property);
85 void propertyRemoved(QtProperty *property, QtProperty *parent);
87protected:
88 virtual bool hasValue(const QtProperty *property) const;
89 virtual QIcon valueIcon(const QtProperty *property) const;
90 virtual QString valueText(const QtProperty *property) const;
91 virtual void initializeProperty(QtProperty *property) = 0;
92 virtual void uninitializeProperty(QtProperty *property);
93 virtual QtProperty *createProperty();
94private:
95 friend class QtProperty;
96 QScopedPointer<QtAbstractPropertyManagerPrivate> d_ptr;
99};
100
102{
104public:
106protected:
107 explicit QtAbstractEditorFactoryBase(QObject *parent = 0)
108 : QObject(parent) {}
109
110 virtual void breakConnection(QtAbstractPropertyManager *manager) = 0;
111protected Q_SLOTS:
112 virtual void managerDestroyed(QObject *manager) = 0;
113
115};
116
117template <class PropertyManager>
119{
120public:
121 explicit QtAbstractEditorFactory(QObject *parent) : QtAbstractEditorFactoryBase(parent) {}
122 QWidget *createEditor(QtProperty *property, QWidget *parent) override
123 {
124 for (PropertyManager *manager : std::as_const(m_managers)) {
125 if (manager == property->propertyManager()) {
126 return createEditor(manager, property, parent);
127 }
128 }
129 return 0;
130 }
131 void addPropertyManager(PropertyManager *manager)
132 {
133 if (m_managers.contains(manager))
134 return;
135 m_managers.insert(manager);
137 connect(manager, &QObject::destroyed,
138 this, &QtAbstractEditorFactory<PropertyManager>::managerDestroyed);
139 }
140 void removePropertyManager(PropertyManager *manager)
141 {
142 if (!m_managers.contains(manager))
143 return;
144 disconnect(manager, &QObject::destroyed,
145 this, &QtAbstractEditorFactory<PropertyManager>::managerDestroyed);
147 m_managers.remove(manager);
148 }
150 {
151 return m_managers;
152 }
153 PropertyManager *propertyManager(QtProperty *property) const
154 {
156 for (PropertyManager *m : std::as_const(m_managers)) {
157 if (m == manager) {
158 return m;
159 }
160 }
161 return 0;
162 }
163protected:
164 virtual void connectPropertyManager(PropertyManager *manager) = 0;
165 virtual QWidget *createEditor(PropertyManager *manager, QtProperty *property,
166 QWidget *parent) = 0;
167 virtual void disconnectPropertyManager(PropertyManager *manager) = 0;
168 void managerDestroyed(QObject *manager) override
169 {
170 for (PropertyManager *m : std::as_const(m_managers)) {
171 if (m == manager) {
172 m_managers.remove(m);
173 return;
174 }
175 }
176 }
177private:
179 {
180 for (PropertyManager *m : std::as_const(m_managers)) {
181 if (m == manager) {
182 removePropertyManager(m);
183 return;
184 }
185 }
186 }
187private:
188 QSet<PropertyManager *> m_managers;
189 friend class QtAbstractPropertyEditor;
190};
191
194
196{
197public:
198 QtProperty *property() const;
199 QtBrowserItem *parent() const;
200 QList<QtBrowserItem *> children() const;
202private:
203 explicit QtBrowserItem(QtAbstractPropertyBrowser *browser, QtProperty *property, QtBrowserItem *parent);
204 ~QtBrowserItem();
205 QScopedPointer<QtBrowserItemPrivate> d_ptr;
206 friend class QtAbstractPropertyBrowserPrivate;
207};
208
209class QtAbstractPropertyBrowserPrivate;
210
212{
214public:
215
218
219 QList<QtProperty *> properties() const;
220 QList<QtBrowserItem *> items(QtProperty *property) const;
221 QtBrowserItem *topLevelItem(QtProperty *property) const;
223 void clear();
224
225 template <class PropertyManager>
226 void setFactoryForManager(PropertyManager *manager,
227 QtAbstractEditorFactory<PropertyManager> *factory) {
228 QtAbstractPropertyManager *abstractManager = manager;
229 QtAbstractEditorFactoryBase *abstractFactory = factory;
230
231 if (addFactory(abstractManager, abstractFactory))
232 factory->addPropertyManager(manager);
233 }
234
236
237 QtBrowserItem *currentItem() const;
239
242
243public Q_SLOTS:
244
246 QtBrowserItem *insertProperty(QtProperty *property, QtProperty *afterProperty);
247 void removeProperty(QtProperty *property);
248
249protected:
250
251 virtual void itemInserted(QtBrowserItem *item, QtBrowserItem *afterItem) = 0;
252 virtual void itemRemoved(QtBrowserItem *item) = 0;
253 // can be tooltip, statustip, whatsthis, name, icon, text.
254 virtual void itemChanged(QtBrowserItem *item) = 0;
255
256 virtual QWidget *createEditor(QtProperty *property, QWidget *parent);
257private:
258
259 bool addFactory(QtAbstractPropertyManager *abstractManager,
260 QtAbstractEditorFactoryBase *abstractFactory);
261
262 QScopedPointer<QtAbstractPropertyBrowserPrivate> d_ptr;
265};
266
267QT_END_NAMESPACE
268
269#endif // QTPROPERTYBROWSER_H
static const char * brushStyles[]
The QtAbstractEditorFactoryBase provides an interface for editor factories.
virtual void breakConnection(QtAbstractPropertyManager *manager)=0
The QtAbstractEditorFactory is the base template class for editor factories.
void removePropertyManager(PropertyManager *manager)
Removes the given manager from this factory's set of managers.
virtual void disconnectPropertyManager(PropertyManager *manager)=0
Disconnects this factory from the given manager's signals.
void breakConnection(QtAbstractPropertyManager *manager) override
PropertyManager * propertyManager(QtProperty *property) const
Returns the property manager for the given property, or 0 if the given property doesn't belong to any...
QSet< PropertyManager * > propertyManagers() const
Returns the factory's set of associated managers.
void addPropertyManager(PropertyManager *manager)
Adds the given manager to this factory's set of managers, making this factory produce editing widgets...
virtual void connectPropertyManager(PropertyManager *manager)=0
Connects this factory to the given manager's signals.
QtAbstractPropertyBrowser provides a base class for implementing property browsers.
QtBrowserItem * currentItem() const
Returns the current item in the property browser.
QList< QtBrowserItem * > items(QtProperty *property) const
Returns the property browser's list of all items associated with the given property.
virtual void itemInserted(QtBrowserItem *item, QtBrowserItem *afterItem)=0
This function is called to update the widget whenever a property is inserted or added to the property...
QList< QtBrowserItem * > topLevelItems() const
Returns the list of top-level items.
QList< QtProperty * > properties() const
Returns the property browser's list of top level properties.
QtBrowserItem * topLevelItem(QtProperty *property) const
Returns the top-level items associated with the given property.
void removeProperty(QtProperty *property)
Removes the specified property (and its subproperties) from the property browser's list of top level ...
void unsetFactoryForManager(QtAbstractPropertyManager *manager)
Removes the association between the given manager and the factory bound to it, automatically calling ...
void setFactoryForManager(PropertyManager *manager, QtAbstractEditorFactory< PropertyManager > *factory)
Connects the given manager to the given factory, ensuring that properties of the manager's type will ...
virtual void itemRemoved(QtBrowserItem *item)=0
This function is called to update the widget whenever a property is removed from the property browser...
virtual void itemChanged(QtBrowserItem *item)=0
This function is called whenever a property's data changes, passing a pointer to the item of property...
QtBrowserItem * insertProperty(QtProperty *property, QtProperty *afterProperty)
Inserts the given property (and its subproperties) after the specified afterProperty in the browser's...
void setCurrentItem(QtBrowserItem *)
Sets the current item in the property browser to item.
~QtAbstractPropertyBrowser()
Destroys the property browser, and destroys all the items that were created by this property browser.
void clear()
Removes all the properties from the editor, but does not delete them since they can still be used in ...
The QtAbstractPropertyManager provides an interface for property managers.
virtual void initializeProperty(QtProperty *property)=0
This function is called whenever a new valid property pointer has been created, passing the pointer a...
void propertyDestroyed(QtProperty *property)
This signal is emitted when the specified property is about to be destroyed.
virtual QIcon valueIcon(const QtProperty *property) const
Returns an icon representing the current state of the given property.
void propertyChanged(QtProperty *property)
This signal is emitted whenever a property's data changes, passing a pointer to the property as param...
QSet< QtProperty * > properties() const
Returns the set of properties created by this manager.
~QtAbstractPropertyManager()
Destroys the manager.
virtual bool hasValue(const QtProperty *property) const
Returns whether the given property has a value.
QtProperty * addProperty(const QString &name=QString())
Creates a property with the given name which then is owned by this manager.
virtual QtProperty * createProperty()
Creates a property.
void clear() const
Destroys all the properties that this manager has created.
virtual QString valueText(const QtProperty *property) const
Returns a string representing the current state of the given property.
virtual void uninitializeProperty(QtProperty *property)
This function is called just before the specified property is destroyed.
void propertyRemoved(QtProperty *property, QtProperty *parent)
This signal is emitted when a subproperty is removed, passing pointers to the removed property and th...
The QtBoolPropertyManager class provides and manages boolean properties.
QIcon valueIcon(const QtProperty *property) const override
\reimp
bool value(const QtProperty *property) const
Returns the given property's value.
~QtBoolPropertyManager()
Destroys this manager, and all the properties it has created.
QString valueText(const QtProperty *property) const override
\reimp
void initializeProperty(QtProperty *property) override
\reimp
void uninitializeProperty(QtProperty *property) override
\reimp
The QtBrowserItem class represents a property in a property browser instance.
QtProperty * property() const
Returns the property which is accosiated with this item.
QtAbstractPropertyBrowser * browser() const
Returns the property browser which owns this item.
QList< QtBrowserItem * > children() const
Returns the children items of this item.
QtBrowserItem * parent() const
Returns the parent item of this item.
The QtCharPropertyManager provides and manages QChar properties.
void uninitializeProperty(QtProperty *property) override
\reimp
void initializeProperty(QtProperty *property) override
\reimp
QChar value(const QtProperty *property) const
Returns the given property's value.
~QtCharPropertyManager()
Destroys this manager, and all the properties it has created.
QString valueText(const QtProperty *property) const override
\reimp
The QtColorPropertyManager provides and manages QColor properties.
~QtColorPropertyManager()
Destroys this manager, and all the properties it has created.
void initializeProperty(QtProperty *property) override
\reimp
QIcon valueIcon(const QtProperty *property) const override
\reimp
void uninitializeProperty(QtProperty *property) override
\reimp
QtIntPropertyManager * subIntPropertyManager() const
Returns the manager that produces the nested red, green and blue subproperties.
QColor value(const QtProperty *property) const
Returns the given property's value.
QString valueText(const QtProperty *property) const override
\reimp
The QtCursorPropertyManager provides and manages QCursor properties.
QString valueText(const QtProperty *property) const override
\reimp
QIcon valueIcon(const QtProperty *property) const override
\reimp
~QtCursorPropertyManager()
Destroys this manager, and all the properties it has created.
void uninitializeProperty(QtProperty *property) override
\reimp
QCursor value(const QtProperty *property) const
Returns the given property's value.
void initializeProperty(QtProperty *property) override
\reimp
The QtDatePropertyManager provides and manages QDate properties.
void rangeChanged(QtProperty *property, QDate minVal, QDate maxVal)
This signal is emitted whenever a property created by this manager changes its range of valid dates,...
void setMaximum(QtProperty *property, QDate maxVal)
Sets the maximum value for the given property to maxVal.
void uninitializeProperty(QtProperty *property) override
\reimp
void initializeProperty(QtProperty *property) override
\reimp
QString valueText(const QtProperty *property) const override
\reimp
void setMinimum(QtProperty *property, QDate minVal)
Sets the minimum value for the given property to minVal.
~QtDatePropertyManager()
Destroys this manager, and all the properties it has created.
void setRange(QtProperty *property, QDate minVal, QDate maxVal)
Sets the range of valid dates.
QDate minimum(const QtProperty *property) const
Returns the given property's minimum date.
QDate maximum(const QtProperty *property) const
Returns the given property's maximum date.
QDate value(const QtProperty *property) const
Returns the given property's value.
The QtDateTimePropertyManager provides and manages QDateTime properties.
void uninitializeProperty(QtProperty *property) override
\reimp
void initializeProperty(QtProperty *property) override
\reimp
QDateTime value(const QtProperty *property) const
Returns the given property's value.
~QtDateTimePropertyManager()
Destroys this manager, and all the properties it has created.
QString valueText(const QtProperty *property) const override
\reimp
The QtDoublePropertyManager provides and manages double properties.
QString valueText(const QtProperty *property) const override
\reimp
double singleStep(const QtProperty *property) const
Returns the given property's step value.
int decimals(const QtProperty *property) const
Returns the given property's precision, in decimals.
void singleStepChanged(QtProperty *property, double step)
This signal is emitted whenever a property created by this manager changes its single step property,...
void setMaximum(QtProperty *property, double maxVal)
Sets the maximum value for the given property to maxVal.
void uninitializeProperty(QtProperty *property) override
\reimp
void decimalsChanged(QtProperty *property, int prec)
This signal is emitted whenever a property created by this manager changes its precision of value,...
void setDecimals(QtProperty *property, int prec)
Sets the precision of the given property to prec.
double minimum(const QtProperty *property) const
Returns the given property's minimum value.
~QtDoublePropertyManager()
Destroys this manager, and all the properties it has created.
double value(const QtProperty *property) const
Returns the given property's value.
void setSingleStep(QtProperty *property, double step)
Sets the step value for the given property to step.
void initializeProperty(QtProperty *property) override
\reimp
void setMinimum(QtProperty *property, double minVal)
Sets the minimum value for the given property to minVal.
void rangeChanged(QtProperty *property, double minVal, double maxVal)
This signal is emitted whenever a property created by this manager changes its range of valid values,...
double maximum(const QtProperty *property) const
Returns the given property's maximum value.
void setRange(QtProperty *property, double minVal, double maxVal)
Sets the range of valid values.
The QtEnumPropertyManager provides and manages enum properties.
void setEnumIcons(QtProperty *property, const QMap< int, QIcon > &icons)
Sets the given property's map of enum values to their icons to enumIcons.
QMap< int, QIcon > enumIcons(const QtProperty *property) const
Returns the given property's map of enum values to their icons.
void enumIconsChanged(QtProperty *property, const QMap< int, QIcon > &icons)
This signal is emitted whenever a property created by this manager changes its enum icons,...
void enumNamesChanged(QtProperty *property, const QStringList &names)
This signal is emitted whenever a property created by this manager changes its enum names,...
QStringList enumNames(const QtProperty *property) const
Returns the given property's list of enum names.
QString valueText(const QtProperty *property) const override
\reimp
QIcon valueIcon(const QtProperty *property) const override
\reimp
void setEnumNames(QtProperty *property, const QStringList &names)
Sets the given property's list of enum names to enumNames.
void initializeProperty(QtProperty *property) override
\reimp
void uninitializeProperty(QtProperty *property) override
\reimp
~QtEnumPropertyManager()
Destroys this manager, and all the properties it has created.
int value(const QtProperty *property) const
Returns the given property's value which is an index in the list returned by enumNames()
The QtFlagPropertyManager provides and manages flag properties.
~QtFlagPropertyManager()
Destroys this manager, and all the properties it has created.
void uninitializeProperty(QtProperty *property) override
\reimp
void flagNamesChanged(QtProperty *property, const QStringList &names)
This signal is emitted whenever a property created by this manager changes its flag names,...
QString valueText(const QtProperty *property) const override
\reimp
QtBoolPropertyManager * subBoolPropertyManager() const
Returns the manager that produces the nested boolean subproperties representing each flag.
void setFlagNames(QtProperty *property, const QStringList &names)
Sets the given property's list of flag names to flagNames.
void initializeProperty(QtProperty *property) override
\reimp
QStringList flagNames(const QtProperty *property) const
Returns the given property's list of flag names.
int value(const QtProperty *property) const
Returns the given property's value.
The QtFontPropertyManager provides and manages QFont properties.
void uninitializeProperty(QtProperty *property) override
\reimp
QFont value(const QtProperty *property) const
Returns the given property's value.
void initializeProperty(QtProperty *property) override
\reimp
QtBoolPropertyManager * subBoolPropertyManager() const
Returns the manager that creates the bold, italic, underline, strikeOut and kerning subproperties.
QIcon valueIcon(const QtProperty *property) const override
\reimp
QtEnumPropertyManager * subEnumPropertyManager() const
Returns the manager that create the family subproperty.
QString valueText(const QtProperty *property) const override
\reimp
QtIntPropertyManager * subIntPropertyManager() const
Returns the manager that creates the pointSize subproperty.
~QtFontPropertyManager()
Destroys this manager, and all the properties it has created.
The QtGroupPropertyManager provides and manages group properties.
bool hasValue(const QtProperty *property) const override
\reimp
void initializeProperty(QtProperty *property) override
\reimp
void uninitializeProperty(QtProperty *property) override
\reimp
~QtGroupPropertyManager()
Destroys this manager, and all the properties it has created.
The QtIntPropertyManager provides and manages int properties.
void uninitializeProperty(QtProperty *property) override
\reimp
~QtIntPropertyManager()
Destroys this manager, and all the properties it has created.
void rangeChanged(QtProperty *property, int minVal, int maxVal)
This signal is emitted whenever a property created by this manager changes its range of valid values,...
void setRange(QtProperty *property, int minVal, int maxVal)
Sets the range of valid values.
void singleStepChanged(QtProperty *property, int step)
This signal is emitted whenever a property created by this manager changes its single step property,...
int singleStep(const QtProperty *property) const
Returns the given property's step value.
int minimum(const QtProperty *property) const
Returns the given property's minimum value.
QString valueText(const QtProperty *property) const override
\reimp
int value(const QtProperty *property) const
Returns the given property's value.
void setMaximum(QtProperty *property, int maxVal)
Sets the maximum value for the given property to maxVal.
void setMinimum(QtProperty *property, int minVal)
Sets the minimum value for the given property to minVal.
int maximum(const QtProperty *property) const
Returns the given property's maximum value.
void setSingleStep(QtProperty *property, int step)
Sets the step value for the given property to step.
void initializeProperty(QtProperty *property) override
\reimp
The QtKeySequencePropertyManager provides and manages QKeySequence properties.
void uninitializeProperty(QtProperty *property) override
\reimp
void initializeProperty(QtProperty *property) override
\reimp
QKeySequence value(const QtProperty *property) const
Returns the given property's value.
QString valueText(const QtProperty *property) const override
\reimp
~QtKeySequencePropertyManager()
Destroys this manager, and all the properties it has created.
The QtLocalePropertyManager provides and manages QLocale properties.
void uninitializeProperty(QtProperty *property) override
\reimp
~QtLocalePropertyManager()
Destroys this manager, and all the properties it has created.
QString valueText(const QtProperty *property) const override
\reimp
QtEnumPropertyManager * subEnumPropertyManager() const
Returns the manager that creates the nested language and territory subproperties.
void initializeProperty(QtProperty *property) override
\reimp
QLocale value(const QtProperty *property) const
Returns the given property's value.
The QtPointFPropertyManager provides and manages QPointF properties.
void initializeProperty(QtProperty *property) override
\reimp
void decimalsChanged(QtProperty *property, int prec)
This signal is emitted whenever a property created by this manager changes its precision of value,...
void setDecimals(QtProperty *property, int prec)
Sets the precision of the given property to prec.
void uninitializeProperty(QtProperty *property) override
\reimp
QString valueText(const QtProperty *property) const override
\reimp
QPointF value(const QtProperty *property) const
Returns the given property's value.
QtDoublePropertyManager * subDoublePropertyManager() const
Returns the manager that creates the nested x and y subproperties.
~QtPointFPropertyManager()
Destroys this manager, and all the properties it has created.
int decimals(const QtProperty *property) const
Returns the given property's precision, in decimals.
The QtPointPropertyManager provides and manages QPoint properties.
QtIntPropertyManager * subIntPropertyManager() const
Returns the manager that creates the nested x and y subproperties.
~QtPointPropertyManager()
Destroys this manager, and all the properties it has created.
void initializeProperty(QtProperty *property) override
\reimp
void uninitializeProperty(QtProperty *property) override
\reimp
QString valueText(const QtProperty *property) const override
\reimp
QPoint value(const QtProperty *property) const
Returns the given property's value.
The QtProperty class encapsulates an instance of a property.
void setModified(bool modified)
Sets the property's modified state according to the passed modified value.
void setToolTip(const QString &text)
void addSubProperty(QtProperty *property)
Appends the given property to this property's subproperties.
QString propertyName() const
Returns the property's name.
bool isEnabled() const
Returns whether the property is enabled.
void setEnabled(bool enable)
Enables or disables the property according to the passed enable value.
QString toolTip() const
bool hasValue() const
Returns whether the property has a value.
void insertSubProperty(QtProperty *property, QtProperty *afterProperty)
Inserts the given property after the specified precedingProperty into this property's list of subprop...
QList< QtProperty * > subProperties() const
Returns the set of subproperties.
QString whatsThis() const
Returns the property's "What's This" help text.
void removeSubProperty(QtProperty *property)
Removes the given property from the list of subproperties without deleting it.
void setValueToolTip(const QString &text)
Sets the property value's tool tip to the given text.
QString statusTip() const
Returns the property's status tip.
QIcon valueIcon() const
Returns an icon representing the current state of this property.
bool isModified() const
Returns whether the property is modified.
virtual ~QtProperty()
Destroys this property.
void setPropertyName(const QString &text)
Sets the property's name to the given name.
void setDescriptionToolTip(const QString &text)
Sets the property description's tool tip to the given text.
QString valueText() const
Returns a string representing the current state of this property.
QString valueToolTip() const
Returns the property value's tool tip.
void setStatusTip(const QString &text)
Sets the property's status tip to the given text.
QtProperty(QtAbstractPropertyManager *manager)
Creates a property with the given manager.
void setWhatsThis(const QString &text)
Sets the property's "What's This" help text to the given text.
QString descriptionToolTip() const
Returns the property description's tool tip.
QtAbstractPropertyManager * propertyManager() const
Returns a pointer to the manager that owns this property.
The QtRectFPropertyManager provides and manages QRectF properties.
void constraintChanged(QtProperty *property, const QRectF &constraint)
This signal is emitted whenever property changes its constraint rectangle, passing a pointer to the p...
QRectF constraint(const QtProperty *property) const
Returns the given property's constraining rectangle.
QRectF value(const QtProperty *property) const
Returns the given property's value.
QtDoublePropertyManager * subDoublePropertyManager() const
Returns the manager that creates the nested x, y, width and height subproperties.
void uninitializeProperty(QtProperty *property) override
\reimp
int decimals(const QtProperty *property) const
Returns the given property's precision, in decimals.
void initializeProperty(QtProperty *property) override
\reimp
QString valueText(const QtProperty *property) const override
\reimp
void decimalsChanged(QtProperty *property, int prec)
This signal is emitted whenever a property created by this manager changes its precision of value,...
void setDecimals(QtProperty *property, int prec)
Sets the precision of the given property to prec.
void setConstraint(QtProperty *property, const QRectF &constraint)
Sets the given property's constraining rectangle to constraint.
~QtRectFPropertyManager()
Destroys this manager, and all the properties it has created.
The QtRectPropertyManager provides and manages QRect properties.
QRect value(const QtProperty *property) const
Returns the given property's value.
void initializeProperty(QtProperty *property) override
\reimp
QtIntPropertyManager * subIntPropertyManager() const
Returns the manager that creates the nested x, y, width and height subproperties.
~QtRectPropertyManager()
Destroys this manager, and all the properties it has created.
QString valueText(const QtProperty *property) const override
\reimp
void constraintChanged(QtProperty *property, const QRect &constraint)
This signal is emitted whenever property changes its constraint rectangle, passing a pointer to the p...
QRect constraint(const QtProperty *property) const
Returns the given property's constraining rectangle.
void setConstraint(QtProperty *property, QRect constraint)
Sets the given property's constraining rectangle to constraint.
void uninitializeProperty(QtProperty *property) override
\reimp
The QtSizeFPropertyManager provides and manages QSizeF properties.
QSizeF value(const QtProperty *property) const
Returns the given property's value.
~QtSizeFPropertyManager()
Destroys this manager, and all the properties it has created.
void setDecimals(QtProperty *property, int prec)
Sets the precision of the given property to prec.
QSizeF maximum(const QtProperty *property) const
Returns the given property's maximum size value.
int decimals(const QtProperty *property) const
Returns the given property's precision, in decimals.
void initializeProperty(QtProperty *property) override
\reimp
QString valueText(const QtProperty *property) const override
\reimp
QSizeF minimum(const QtProperty *property) const
Returns the given property's minimum size value.
void rangeChanged(QtProperty *property, QSizeF minVal, QSizeF maxVal)
This signal is emitted whenever a property created by this manager changes its range of valid sizes,...
void setMinimum(QtProperty *property, QSizeF minVal)
Sets the minimum size value for the given property to minVal.
QtDoublePropertyManager * subDoublePropertyManager() const
Returns the manager that creates the nested width and height subproperties.
void uninitializeProperty(QtProperty *property) override
\reimp
void setRange(QtProperty *property, QSizeF minVal, QSizeF maxVal)
Sets the range of valid values.
void setMaximum(QtProperty *property, QSizeF maxVal)
Sets the maximum size value for the given property to maxVal.
void decimalsChanged(QtProperty *property, int prec)
This signal is emitted whenever a property created by this manager changes its precision of value,...
The QtSizePolicyPropertyManager provides and manages QSizePolicy properties.
QtIntPropertyManager * subIntPropertyManager() const
Returns the manager that creates the nested horizontalStretch and verticalStretch subproperties.
QtEnumPropertyManager * subEnumPropertyManager() const
Returns the manager that creates the nested horizontalPolicy and verticalPolicy subproperties.
~QtSizePolicyPropertyManager()
Destroys this manager, and all the properties it has created.
void uninitializeProperty(QtProperty *property) override
\reimp
void initializeProperty(QtProperty *property) override
\reimp
QSizePolicy value(const QtProperty *property) const
Returns the given property's value.
QString valueText(const QtProperty *property) const override
\reimp
The QtSizePropertyManager provides and manages QSize properties.
void rangeChanged(QtProperty *property, QSize minVal, QSize maxVal)
This signal is emitted whenever a property created by this manager changes its range of valid sizes,...
QSize value(const QtProperty *property) const
Returns the given property's value.
void uninitializeProperty(QtProperty *property) override
\reimp
void setMaximum(QtProperty *property, QSize maxVal)
Sets the maximum size value for the given property to maxVal.
void setRange(QtProperty *property, QSize minVal, QSize maxVal)
Sets the range of valid values.
void initializeProperty(QtProperty *property) override
\reimp
QSize maximum(const QtProperty *property) const
Returns the given property's maximum size value.
void setMinimum(QtProperty *property, QSize minVal)
Sets the minimum size value for the given property to minVal.
QString valueText(const QtProperty *property) const override
\reimp
QSize minimum(const QtProperty *property) const
Returns the given property's minimum size value.
~QtSizePropertyManager()
Destroys this manager, and all the properties it has created.
QtIntPropertyManager * subIntPropertyManager() const
Returns the manager that creates the nested width and height subproperties.
The QtStringPropertyManager provides and manages QString properties.
QString value(const QtProperty *property) const
Returns the given property's value.
QRegularExpression regExp(const QtProperty *property) const
Returns the given property's currently set regular expression.
void setRegExp(QtProperty *property, const QRegularExpression &regExp)
Sets the regular expression of the given property to regExp.
~QtStringPropertyManager()
Destroys this manager, and all the properties it has created.
void initializeProperty(QtProperty *property) override
\reimp
QString valueText(const QtProperty *property) const override
\reimp
void uninitializeProperty(QtProperty *property) override
\reimp
void regExpChanged(QtProperty *property, const QRegularExpression &regExp)
This signal is emitted whenever a property created by this manager changes its currenlty set regular ...
The QtTimePropertyManager provides and manages QTime properties.
void initializeProperty(QtProperty *property) override
\reimp
~QtTimePropertyManager()
Destroys this manager, and all the properties it has created.
QTime value(const QtProperty *property) const
Returns the given property's value.
void uninitializeProperty(QtProperty *property) override
\reimp
QString valueText(const QtProperty *property) const override
\reimp
The QtVariantPropertyManager class provides and manages QVariant based properties.
QtVariantProperty * variantProperty(const QtProperty *property) const
Returns the given property converted into a QtVariantProperty.
The QtVariantProperty class is a convenience class handling QVariant based properties.
int valueChanged(QtVariantPropertyManager *vm, QtProperty *property, const QVariant &value)
bool valueIcon(const QtProperty *property, QIcon *icon) const
bool valueText(const QtProperty *property, QString *text) const
void initializeProperty(QtVariantPropertyManager *vm, QtProperty *property, int enumTypeId)
bool value(const QtProperty *property, QVariant *v) const
int setValue(QtVariantPropertyManager *vm, QtProperty *property, const QVariant &value)
Combined button and popup list for selecting options.
Auxiliary methods to store/retrieve settings.