#include <pcombobox.h>
Public Member Functions | |
| PComboBox (MultiProperty *property, const TQStringVariantMap &list, TQWidget *parent=0, const char *name=0) | |
| PComboBox (MultiProperty *property, const TQStringVariantMap &list, bool rw, TQWidget *parent=0, const char *name=0) | |
| virtual TQVariant | value () const |
| virtual void | setValue (const TQVariant &value, bool emitChange=true) |
| virtual void | setValueList (const TQStringVariantMap &valueList) |
Public Member Functions inherited from PropertyLib::PropertyWidget | |
| PropertyWidget (MultiProperty *property, TQWidget *parent=0, const char *name=0) | |
| virtual TQString | propertyName () const |
| virtual void | setProperty (MultiProperty *property) |
| virtual void | drawViewer (TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value) |
| virtual void | undo () |
Protected Slots | |
| void | updateProperty (int val) |
Protected Member Functions | |
| TQString | findDescription (const TQVariant &value) |
Additional Inherited Members | |
Signals inherited from PropertyLib::PropertyWidget | |
| void | propertyChanged (MultiProperty *property, const TQVariant &value) |
Protected Attributes inherited from PropertyLib::PropertyWidget | |
| MultiProperty * | m_property |
Detailed Description
Property editor with combobox.
Definition at line 36 of file pcombobox.h.
Constructor & Destructor Documentation
◆ PComboBox() [1/2]
| PropertyLib::PComboBox::PComboBox | ( | MultiProperty * | property, |
| const TQStringVariantMap & | list, | ||
| TQWidget * | parent = 0, |
||
| const char * | name = 0 |
||
| ) |
This constructor is used for read-only selection combo.
It provides a value from valueList
Definition at line 27 of file pcombobox.cpp.
◆ PComboBox() [2/2]
| PropertyLib::PComboBox::PComboBox | ( | MultiProperty * | property, |
| const TQStringVariantMap & | list, | ||
| bool | rw, | ||
| TQWidget * | parent = 0, |
||
| const char * | name = 0 |
||
| ) |
This constructor is used for read-write selection combo.
It provides a value from valueList
Definition at line 33 of file pcombobox.cpp.
Member Function Documentation
◆ findDescription()
|
protected |
Definition at line 84 of file pcombobox.cpp.
◆ setValue()
|
virtual |
Sets the value shown in the editor widget.
Set emitChange to false if you don't want to emit propertyChanged signal.
Implements PropertyLib::PropertyWidget.
Definition at line 67 of file pcombobox.cpp.
◆ setValueList()
|
virtual |
Sets the list of possible values shown in the editor widget.
This method does not emit propertyChanged signal. Reimplemented because combobox is used to display possible values from valueList.
Reimplemented from PropertyLib::PropertyWidget.
Definition at line 94 of file pcombobox.cpp.
◆ updateProperty
|
protectedslot |
Definition at line 79 of file pcombobox.cpp.
◆ value()
|
virtual |
- Returns
- the value currently entered in the editor widget.
Implements PropertyLib::PropertyWidget.
Definition at line 59 of file pcombobox.cpp.
The documentation for this class was generated from the following files:
Trinity API Reference
Public Member Functions inherited from