KDevelop API Documentation

PropertyLib::PDummyWidget Class Reference

Property editor with empty widget. More...

#include <pdummywidget.h>

Inheritance diagram for PropertyLib::PDummyWidget:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PDummyWidget (MultiProperty *property, QWidget *parent=0, const char *name=0)
virtual QVariant value () const
virtual void setValue (const QVariant &value, bool emitChange)
 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 Attributes

QVariant m_value

Detailed Description

Property editor with empty widget.

This is usefull for properties which can't be edited in a generic way like QValueList's or QMap's stored in a variant.

Definition at line 40 of file pdummywidget.h.


Constructor & Destructor Documentation

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

Definition at line 26 of file pdummywidget.cpp.


Member Function Documentation

void PropertyLib::PDummyWidget::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 43 of file pdummywidget.cpp.

void PropertyLib::PDummyWidget::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 36 of file pdummywidget.cpp.

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

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

Returns:
the value currently entered in the editor widget.

Implements PropertyLib::PropertyWidget.

Definition at line 31 of file pdummywidget.cpp.


Member Data Documentation

QVariant PropertyLib::PDummyWidget::m_value [private]
 

Definition at line 55 of file pdummywidget.h.

Referenced by setValue().


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:45 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003