PropertyLib::PropertyWidgetProxy Class Reference
#include <propertywidgetproxy.h>
Inherits TQWidget.
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.
Member Function Documentation
◆ 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.
The documentation for this class was generated from the following files: