PropertyLib::PSizePolicyEdit Class Reference
Property editor for QSizePolicy values. More...
#include <psizepolicyedit.h>
Inheritance diagram for PropertyLib::PSizePolicyEdit:


Public Member Functions | |
| PSizePolicyEdit (MultiProperty *property, const QMap< QString, QVariant > &spValues, QWidget *parent=0, const char *name=0) | |
| virtual QVariant | value () const |
| virtual void | drawViewer (QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value) |
| Function to draw a property viewer when the editor isn't shown. | |
| virtual void | setValue (const QVariant &value, bool emitChange) |
| Sets the value shown in the editor widget. | |
| QString | findValueDescription (QVariant val) const |
Private Attributes | |
| QLineEdit * | m_edit |
| QVariant | m_value |
| QMap< QString, QVariant > | m_spValues |
Detailed Description
Property editor for QSizePolicy values.
Definition at line 34 of file psizepolicyedit.h.
Constructor & Destructor Documentation
|
||||||||||||||||||||
|
Definition at line 29 of file psizepolicyedit.cpp. References m_edit. |
Member Function Documentation
|
||||||||||||||||||||
|
Function to draw a property viewer when the editor isn't shown.
Reimplemented from PropertyLib::PropertyWidget. Definition at line 45 of file psizepolicyedit.cpp. References findValueDescription(). |
|
|
Definition at line 62 of file psizepolicyedit.cpp. References m_spValues. Referenced by drawViewer(), and setValue(). |
|
||||||||||||
|
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 53 of file psizepolicyedit.cpp. References findValueDescription(), m_edit, m_value, and PropertyLib::PropertyWidget::propertyChanged(). |
|
|
Implements PropertyLib::PropertyWidget. Definition at line 40 of file psizepolicyedit.cpp. |
Member Data Documentation
|
|
Definition at line 47 of file psizepolicyedit.h. Referenced by PSizePolicyEdit(), and setValue(). |
|
|
Definition at line 49 of file psizepolicyedit.h. Referenced by findValueDescription(). |
|
|
Definition at line 48 of file psizepolicyedit.h. Referenced by setValue(). |
The documentation for this class was generated from the following files:
- lib/widgets/propeditor/psizepolicyedit.h
- lib/widgets/propeditor/psizepolicyedit.cpp
