PropertyLib::PComboBox Class Reference
Property editor with combobox. More...
#include <pcombobox.h>
Inheritance diagram for PropertyLib::PComboBox:


Public Member Functions | |
PComboBox (MultiProperty *property, const QMap< QString, QVariant > &list, QWidget *parent=0, const char *name=0) | |
This constructor is used for read-only selection combo. | |
PComboBox (MultiProperty *property, const QMap< QString, QVariant > &list, bool rw, QWidget *parent=0, const char *name=0) | |
This constructor is used for read-write selection combo. | |
virtual QVariant | value () const |
virtual void | setValue (const QVariant &value, bool emitChange=true) |
Sets the value shown in the editor widget. | |
virtual void | setValueList (const QMap< QString, QVariant > &valueList) |
Sets the list of possible values shown in the editor widget. | |
Protected Slots | |
void | updateProperty (int val) |
Protected Member Functions | |
QString | findDescription (const QVariant &value) |
Private Member Functions | |
virtual void | fillBox () |
void | init (bool rw=false) |
Private Attributes | |
QMap< QString, QVariant > | m_valueList |
map<description, value> | |
QComboBox * | m_edit |
Detailed Description
Property editor with combobox.
Definition at line 36 of file pcombobox.h.
Constructor & Destructor Documentation
|
This constructor is used for read-only selection combo. It provides a value from valueList Definition at line 27 of file pcombobox.cpp. References init(). |
|
This constructor is used for read-write selection combo. It provides a value from valueList Definition at line 33 of file pcombobox.cpp. References init(). |
Member Function Documentation
|
Definition at line 51 of file pcombobox.cpp. References m_edit, and m_valueList. Referenced by init(), and setValueList(). |
|
Definition at line 88 of file pcombobox.cpp. References m_valueList. Referenced by PropertyLib::PCursorEdit::drawViewer(), and setValue(). |
|
Definition at line 39 of file pcombobox.cpp. References fillBox(), m_edit, and updateProperty(). Referenced by PComboBox(). |
|
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. References findDescription(), m_edit, PropertyLib::PropertyWidget::propertyChanged(), and updateProperty(). |
|
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 98 of file pcombobox.cpp. References fillBox(), m_edit, and m_valueList. |
|
Definition at line 83 of file pcombobox.cpp. References PropertyLib::PropertyWidget::propertyChanged(), and value(). Referenced by init(), and setValue(). |
|
Implements PropertyLib::PropertyWidget. Definition at line 59 of file pcombobox.cpp. References m_edit, and m_valueList. Referenced by updateProperty(). |
Member Data Documentation
|
Definition at line 67 of file pcombobox.h. Referenced by fillBox(), init(), setValue(), setValueList(), and value(). |
|
map<description, value>
Definition at line 65 of file pcombobox.h. Referenced by fillBox(), findDescription(), setValueList(), and value(). |
The documentation for this class was generated from the following files:
- lib/widgets/propeditor/pcombobox.h
- lib/widgets/propeditor/pcombobox.cpp