KDevelop API Documentation

PropertyLib::PCheckBox Class Reference

Property editor with checkbox. More...

#include <pcheckbox.h>

Inheritance diagram for PropertyLib::PCheckBox:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PCheckBox (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 (bool val)

Private Attributes

QCheckBoxm_edit

Detailed Description

Property editor with checkbox.

Definition at line 32 of file pcheckbox.h.


Constructor & Destructor Documentation

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

Definition at line 34 of file pcheckbox.cpp.

References m_edit, and updateProperty().


Member Function Documentation

void PropertyLib::PCheckBox::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 64 of file pcheckbox.cpp.

void PropertyLib::PCheckBox::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 50 of file pcheckbox.cpp.

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

void PropertyLib::PCheckBox::updateProperty bool  val  )  [private, slot]
 

Definition at line 59 of file pcheckbox.cpp.

References PropertyLib::PropertyWidget::propertyChanged().

Referenced by PCheckBox(), and setValue().

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

Returns:
the value currently entered in the editor widget.

Implements PropertyLib::PropertyWidget.

Definition at line 45 of file pcheckbox.cpp.

References m_edit.


Member Data Documentation

QCheckBox* PropertyLib::PCheckBox::m_edit [private]
 

Definition at line 49 of file pcheckbox.h.

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