KDevelop API Documentation

PropertyLib::PSizePolicyEdit Class Reference

Property editor for QSizePolicy values. More...

#include <psizepolicyedit.h>

Inheritance diagram for PropertyLib::PSizePolicyEdit:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PSizePolicyEdit (MultiProperty *property, const QMap< QString, QVariant > &spValues, 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.
QString findValueDescription (QVariant val) const

Private Attributes

QLineEditm_edit
QVariant m_value
QMap< QString, QVariantm_spValues

Detailed Description

Property editor for QSizePolicy values.

Definition at line 34 of file psizepolicyedit.h.


Constructor & Destructor Documentation

PropertyLib::PSizePolicyEdit::PSizePolicyEdit MultiProperty property,
const QMap< QString, QVariant > &  spValues,
QWidget parent = 0,
const char *  name = 0
 

Definition at line 29 of file psizepolicyedit.cpp.

References m_edit.


Member Function Documentation

void PropertyLib::PSizePolicyEdit::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 psizepolicyedit.cpp.

References findValueDescription().

QString PropertyLib::PSizePolicyEdit::findValueDescription QVariant  val  )  const
 

Definition at line 62 of file psizepolicyedit.cpp.

References m_spValues.

Referenced by drawViewer(), and setValue().

void PropertyLib::PSizePolicyEdit::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 53 of file psizepolicyedit.cpp.

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

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

Returns:
the value currently entered in the editor widget.

Implements PropertyLib::PropertyWidget.

Definition at line 40 of file psizepolicyedit.cpp.


Member Data Documentation

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

Definition at line 47 of file psizepolicyedit.h.

Referenced by PSizePolicyEdit(), and setValue().

QMap<QString, QVariant> PropertyLib::PSizePolicyEdit::m_spValues [private]
 

Definition at line 49 of file psizepolicyedit.h.

Referenced by findValueDescription().

QVariant PropertyLib::PSizePolicyEdit::m_value [private]
 

Definition at line 48 of file psizepolicyedit.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:52:04 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003