#include <propertywidgetproxy.h>
Public Member Functions | |
| PropertyWidgetProxy (TQWidget *parent=0, const char *name=0) | |
| void | setPropertyType (int propertyType) |
| int | propertyType () const |
| void | setPropertyType2 (PropertyType propertyType) |
| PropertyType | propertyType2 () const |
| TQVariant | value () const |
| void | setValue (const TQVariant &value) |
| bool | setProperty (const char *name, const TQVariant &value) |
| TQVariant | property (const char *name) const |
Protected Member Functions | |
| virtual void | setWidget () |
Detailed Description
Property Widget Proxy.
It is sometimes useful to create single property editor widgets instead of having them all in the property editor. Proxy creates an empty widget and shows the property editor depending on the property type.
Definition at line 42 of file propertywidgetproxy.h.
Constructor & Destructor Documentation
◆ PropertyWidgetProxy()
| PropertyLib::PropertyWidgetProxy::PropertyWidgetProxy | ( | TQWidget * | parent = 0, |
| const char * | name = 0 ) |
Definition at line 29 of file propertywidgetproxy.cpp.
◆ ~PropertyWidgetProxy()
| PropertyLib::PropertyWidgetProxy::~PropertyWidgetProxy | ( | ) |
Definition at line 36 of file propertywidgetproxy.cpp.
Member Function Documentation
◆ property()
| TQVariant PropertyLib::PropertyWidgetProxy::property | ( | const char * | name | ) | const |
Definition at line 94 of file propertywidgetproxy.cpp.
◆ propertyType()
|
inline |
Definition at line 54 of file propertywidgetproxy.h.
◆ propertyType2()
|
inline |
Definition at line 57 of file propertywidgetproxy.h.
◆ setProperty()
| bool PropertyLib::PropertyWidgetProxy::setProperty | ( | const char * | name, |
| const TQVariant & | value ) |
Sets the type of an editor basing on the value if the name is "value".
Otherwise works as TQWidget::setProperty.
Definition at line 82 of file propertywidgetproxy.cpp.
◆ setPropertyType()
| void PropertyLib::PropertyWidgetProxy::setPropertyType | ( | int | propertyType | ) |
Sets the type of a property editor to appear.
Definition at line 42 of file propertywidgetproxy.cpp.
◆ setPropertyType2()
| void PropertyLib::PropertyWidgetProxy::setPropertyType2 | ( | PropertyType | propertyType | ) |
Sets the type of a property editor to appear.
Definition at line 48 of file propertywidgetproxy.cpp.
◆ setValue()
| void PropertyLib::PropertyWidgetProxy::setValue | ( | const TQVariant & | value | ) |
Definition at line 76 of file propertywidgetproxy.cpp.
◆ setWidget()
|
protectedvirtual |
Definition at line 54 of file propertywidgetproxy.cpp.
◆ value()
| TQVariant PropertyLib::PropertyWidgetProxy::value | ( | ) | const |
Definition at line 68 of file propertywidgetproxy.cpp.
The documentation for this class was generated from the following files:
Trinity API Reference