KDevelop API Documentation

PropertyLib::PSpinBox Class Reference

Property editor with integer num input box. More...

#include <pspinbox.h>

Inheritance diagram for PropertyLib::PSpinBox:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PSpinBox (MultiProperty *property, QWidget *parent=0, const char *name=0)
 PSpinBox (MultiProperty *property, int minValue, int maxValue, int step=1, 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.

Private Slots

void updateProperty (int val)

Private Attributes

QSpinBoxm_edit

Detailed Description

Property editor with integer num input box.

Definition at line 32 of file pspinbox.h.


Constructor & Destructor Documentation

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

Definition at line 29 of file pspinbox.cpp.

References m_edit, and updateProperty().

PropertyLib::PSpinBox::PSpinBox MultiProperty property,
int  minValue,
int  maxValue,
int  step = 1,
QWidget parent = 0,
const char *  name = 0
 

Definition at line 40 of file pspinbox.cpp.

References m_edit, and updateProperty().


Member Function Documentation

void PropertyLib::PSpinBox::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 55 of file pspinbox.cpp.

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

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

Definition at line 64 of file pspinbox.cpp.

References PropertyLib::PropertyWidget::propertyChanged().

Referenced by PSpinBox(), and setValue().

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

Returns:
the value currently entered in the editor widget.

Implements PropertyLib::PropertyWidget.

Definition at line 50 of file pspinbox.cpp.

References m_edit.


Member Data Documentation

QSpinBox* PropertyLib::PSpinBox::m_edit [private]
 

Definition at line 48 of file pspinbox.h.

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