PropertyLib::PFontButton Class Reference
Property editor with font chooser button. More...
#include <pfontbutton.h>
Inheritance diagram for PropertyLib::PFontButton:


Public Member Functions | |
PFontButton (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. | |
Protected Slots | |
void | updateProperty (const QFont &font) |
Private Attributes | |
KFontRequester * | m_edit |
Detailed Description
Property editor with font chooser button.
Definition at line 32 of file pfontbutton.h.
Constructor & Destructor Documentation
|
Definition at line 31 of file pfontbutton.cpp. References KFontRequester::button(), m_edit, and updateProperty(). |
Member Function Documentation
|
Function to draw a property viewer when the editor isn't shown.
Reimplemented from PropertyLib::PropertyWidget. Definition at line 48 of file pfontbutton.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 60 of file pfontbutton.cpp. References m_edit, PropertyLib::PropertyWidget::propertyChanged(), KFontRequester::setFont(), and updateProperty(). |
|
Definition at line 69 of file pfontbutton.cpp. References PropertyLib::PropertyWidget::propertyChanged(), and value(). Referenced by PFontButton(), and setValue(). |
|
Implements PropertyLib::PropertyWidget. Definition at line 43 of file pfontbutton.cpp. References KFontRequester::font, and m_edit. Referenced by updateProperty(). |
Member Data Documentation
|
Definition at line 46 of file pfontbutton.h. Referenced by PFontButton(), setValue(), and value(). |
The documentation for this class was generated from the following files:
- lib/widgets/propeditor/pfontbutton.h
- lib/widgets/propeditor/pfontbutton.cpp