KDevelop API Documentation

PropertyLib::PPointEdit Class Reference

Property editor for QPoint values. More...

#include <ppointedit.h>

Inheritance diagram for PropertyLib::PPointEdit:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PPointEdit (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.

Private Attributes

QLineEditm_edit
QVariant m_value

Detailed Description

Property editor for QPoint values.

Definition at line 32 of file ppointedit.h.


Constructor & Destructor Documentation

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

Definition at line 28 of file ppointedit.cpp.

References m_edit.


Member Function Documentation

void PropertyLib::PPointEdit::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 ppointedit.cpp.

void PropertyLib::PPointEdit::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 51 of file ppointedit.cpp.

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

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

Returns:
the value currently entered in the editor widget.

Implements PropertyLib::PropertyWidget.

Definition at line 38 of file ppointedit.cpp.


Member Data Documentation

QLineEdit* PropertyLib::PPointEdit::m_edit [private]
 

Definition at line 43 of file ppointedit.h.

Referenced by PPointEdit(), and setValue().

QVariant PropertyLib::PPointEdit::m_value [private]
 

Definition at line 44 of file ppointedit.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 Wed Mar 23 00:33:21 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003