| images |
|
|
- |
| qtbuttonpropertybrowser.cpp |
QIcon icon;
icon.addPixmap(q_ptr->style()->standardPixmap(QStyle::SP_ArrowDown), QIcon::Normal, QIcon::Off);
icon.addPixmap(q_ptr->style()->standardPixmap(QStyle::SP_ArrowUp), QIcon::Normal, QIcon::On);
button->setIcon(icon);
|
17822 |
- |
| qtbuttonpropertybrowser_p.h |
|
1372 |
- |
| qteditorfactory.cpp |
|
71086 |
- |
| qteditorfactory_p.h |
|
10699 |
- |
| qtgroupboxpropertybrowser.cpp |
|
14208 |
- |
| qtgroupboxpropertybrowser_p.h |
|
1190 |
- |
| qtpropertybrowser.cpp |
!
\class QtProperty
\internal
\inmodule QtDesigner
\since 4.4
\brief The QtProperty class encapsulates an instance of a property.
Properties are created by objects of QtAbstractPropertyManager
subclasses; a manager can create properties of a given type, and
is used in conjunction with the QtAbstractPropertyBrowser class. A
property is always owned by the manager that created it, which can
be retrieved using the propertyManager() function.
QtProperty contains the most common property attributes, and
provides functions for retrieving as well as setting their values:
\table
\header \li Getter \li Setter
\row
\li propertyName() \li setPropertyName()
\row
\li statusTip() \li setStatusTip()
\row
\li descriptionToolTip() \li setDescriptionToolTip()
\row
\li valueToolTip() \li setValueToolTip()
\row
\li toolTip() \deprecated in 5.6 \li setToolTip() \deprecated in 5.6
\row
\li whatsThis() \li setWhatsThis()
\row
\li isEnabled() \li setEnabled()
\row
\li isModified() \li setModified()
\row
\li valueText() \li Nop
\row
\li valueIcon() \li Nop
\endtable
It is also possible to nest properties: QtProperty provides the
addSubProperty(), insertSubProperty() and removeSubProperty() functions to
manipulate the set of subproperties. Use the subProperties()
function to retrieve a property's current set of subproperties.
Note that nested properties are not owned by the parent property,
i.e. each subproperty is owned by the manager that created it.
\sa QtAbstractPropertyManager, QtBrowserItem
|
60567 |
- |
| qtpropertybrowser_p.h |
|
8646 |
- |
| qtpropertybrowserutils.cpp |
|
16288 |
- |
| qtpropertybrowserutils_p.h |
|
3168 |
- |
| qtpropertymanager.cpp |
|
208456 |
- |
| qtpropertymanager_p.h |
|
23561 |
- |
| qttreepropertybrowser.cpp |
|
32116 |
- |
| qttreepropertybrowser_p.h |
|
3018 |
- |
| qtvariantproperty.cpp |
!
Returns the type id for an enum property.
Note that the property's value type can be retrieved using the
valueType() function (which is QMetaType::Int for the enum property
type).
\sa propertyType(), valueType()
|
95564 |
- |
| qtvariantproperty_p.h |
|
3838 |
- |