KDevelop API Documentation

PropertyLib::PFontButton Class Reference

Property editor with font chooser button. More...

#include <pfontbutton.h>

Inheritance diagram for PropertyLib::PFontButton:

Inheritance graph
[legend]
Collaboration diagram for PropertyLib::PFontButton:

Collaboration graph
[legend]
List of all members.

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

KFontRequesterm_edit

Detailed Description

Property editor with font chooser button.

Definition at line 32 of file pfontbutton.h.


Constructor & Destructor Documentation

PropertyLib::PFontButton::PFontButton MultiProperty property,
QWidget parent = 0,
const char *  name = 0
 

Definition at line 31 of file pfontbutton.cpp.

References KFontRequester::button(), m_edit, and updateProperty().


Member Function Documentation

void PropertyLib::PFontButton::drawViewer QPainter p,
const QColorGroup cg,
const QRect r,
const QVariant value
[virtual]
 

Function to draw a property viewer when the editor isn't shown.

Reimplemented from PropertyLib::PropertyWidget.

Definition at line 48 of file pfontbutton.cpp.

void PropertyLib::PFontButton::setValue const QVariant value,
bool  emitChange
[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 60 of file pfontbutton.cpp.

References m_edit, PropertyLib::PropertyWidget::propertyChanged(), KFontRequester::setFont(), and updateProperty().

void PropertyLib::PFontButton::updateProperty const QFont font  )  [protected, slot]
 

Definition at line 69 of file pfontbutton.cpp.

References PropertyLib::PropertyWidget::propertyChanged(), and value().

Referenced by PFontButton(), and setValue().

QVariant PropertyLib::PFontButton::value  )  const [virtual]
 

Returns:
the value currently entered in the editor widget.

Implements PropertyLib::PropertyWidget.

Definition at line 43 of file pfontbutton.cpp.

References KFontRequester::font, and m_edit.

Referenced by updateProperty().


Member Data Documentation

KFontRequester* PropertyLib::PFontButton::m_edit [private]
 

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:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:51:47 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003