PropertyLib::PPixmapEdit Class Reference
Property editor which shows a pixmap and allows to load it from file. More...
#include <ppixmapedit.h>
Inheritance diagram for PropertyLib::PPixmapEdit:


Public Member Functions | |
| PPixmapEdit (MultiProperty *property, 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. | |
| virtual void | resizeEvent (QResizeEvent *ev) |
| virtual bool | eventFilter (QObject *o, QEvent *ev) |
Protected Slots | |
| void | updateProperty () |
Private Attributes | |
| QLabel * | m_edit |
| QLabel * | m_popup |
| KPushButton * | m_button |
Detailed Description
Property editor which shows a pixmap and allows to load it from file.
Definition at line 33 of file ppixmapedit.h.
Constructor & Destructor Documentation
|
||||||||||||||||
|
Definition at line 35 of file ppixmapedit.cpp. References m_button, m_edit, m_popup, and updateProperty(). |
Member Function Documentation
|
||||||||||||||||||||
|
Function to draw a property viewer when the editor isn't shown.
Reimplemented from PropertyLib::PropertyWidget. Definition at line 63 of file ppixmapedit.cpp. |
|
||||||||||||
|
Definition at line 95 of file ppixmapedit.cpp. |
|
|
Definition at line 88 of file ppixmapedit.cpp. |
|
||||||||||||
|
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 71 of file ppixmapedit.cpp. References m_edit, and PropertyLib::PropertyWidget::propertyChanged(). |
|
|
Definition at line 78 of file ppixmapedit.cpp. References KFileDialog::getImageOpenURL(), KURL::isEmpty(), m_edit, KURL::path(), PropertyLib::PropertyWidget::propertyChanged(), and value(). Referenced by PPixmapEdit(). |
|
|
Implements PropertyLib::PropertyWidget. Definition at line 58 of file ppixmapedit.cpp. References m_edit. Referenced by updateProperty(). |
Member Data Documentation
|
|
Definition at line 52 of file ppixmapedit.h. Referenced by eventFilter(), PPixmapEdit(), and resizeEvent(). |
|
|
Definition at line 50 of file ppixmapedit.h. Referenced by eventFilter(), PPixmapEdit(), resizeEvent(), setValue(), updateProperty(), and value(). |
|
|
Definition at line 51 of file ppixmapedit.h. Referenced by eventFilter(), and PPixmapEdit(). |
The documentation for this class was generated from the following files:
- lib/widgets/propeditor/ppixmapedit.h
- lib/widgets/propeditor/ppixmapedit.cpp
