KDevelop API Documentation

PropertyLib::PColorButton Class Reference

Property editor with color chooser button. More...

#include <pcolorbutton.h>

Inheritance diagram for PropertyLib::PColorButton:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PColorButton (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 QColor &color)

Private Attributes

KColorButtonm_edit

Detailed Description

Property editor with color chooser button.

Definition at line 32 of file pcolorbutton.h.


Constructor & Destructor Documentation

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

Definition at line 29 of file pcolorbutton.cpp.

References m_edit, and updateProperty().


Member Function Documentation

void PropertyLib::PColorButton::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 45 of file pcolorbutton.cpp.

void PropertyLib::PColorButton::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 62 of file pcolorbutton.cpp.

References m_edit, PropertyLib::PropertyWidget::propertyChanged(), KColorButton::setColor(), and updateProperty().

void PropertyLib::PColorButton::updateProperty const QColor color  )  [protected, slot]
 

Definition at line 71 of file pcolorbutton.cpp.

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

Referenced by PColorButton(), and setValue().

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

Returns:
the value currently entered in the editor widget.

Implements PropertyLib::PropertyWidget.

Definition at line 40 of file pcolorbutton.cpp.

References KColorButton::color, and m_edit.

Referenced by updateProperty().


Member Data Documentation

KColorButton* PropertyLib::PColorButton::m_edit [private]
 

Definition at line 46 of file pcolorbutton.h.

Referenced by PColorButton(), 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 Wed Mar 23 00:33:10 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003