KDevelop API Documentation

PropertyLib::PColorCombo Class Reference

Property editor with color combobox. More...

#include <pcolorcombo.h>

Inheritance diagram for PropertyLib::PColorCombo:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PColorCombo (MultiProperty *property, QWidget *parent=0, const char *name=0)
virtual QVariant value () const
virtual void setValue (const QVariant &value, bool emitChange=true)
 Sets the value shown in the editor widget.
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.

Private Slots

void updateProperty (int val)

Private Attributes

KColorCombom_edit

Detailed Description

Property editor with color combobox.

Definition at line 32 of file pcolorcombo.h.


Constructor & Destructor Documentation

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

Definition at line 29 of file pcolorcombo.cpp.

References m_edit, and updateProperty().


Member Function Documentation

void PropertyLib::PColorCombo::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 59 of file pcolorcombo.cpp.

void PropertyLib::PColorCombo::setValue const QVariant value,
bool  emitChange = true
[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 45 of file pcolorcombo.cpp.

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

void PropertyLib::PColorCombo::updateProperty int  val  )  [private, slot]
 

Definition at line 54 of file pcolorcombo.cpp.

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

Referenced by PColorCombo(), and setValue().

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

Returns:
the value currently entered in the editor widget.

Implements PropertyLib::PropertyWidget.

Definition at line 40 of file pcolorcombo.cpp.

References KColorCombo::color, and m_edit.

Referenced by updateProperty().


Member Data Documentation

KColorCombo* PropertyLib::PColorCombo::m_edit [private]
 

Definition at line 49 of file pcolorcombo.h.

Referenced by PColorCombo(), 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:39 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003