FloatSpinBox Class Reference

reimplements QSpinBox for float values More...

#include <floatspinbox.h>

List of all members.

Public Slots

void setValue (double value)

Signals

void valueChanged (double value)
void focusOut ()
void returnPressed ()
void focusOut ()
void returnPressed ()

Public Member Functions

 FloatSpinBox (QWidget *parent=0, const char *name=0)
 FloatSpinBox (float minValue, float maxValue, int decimals=2, float step=1.0, QWidget *parent=0, const char *name=0)
 ~FloatSpinBox ()
virtual QSize sizeHint () const
float value () const
float minValue () const
float maxValue () const
void setRange (double minValue, double maxValue)
 FloatSpinBox (QWidget *parent=0, const char *name=0)
 FloatSpinBox (float minValue, float maxValue, int decimals=2, float step=1.0, QWidget *parent=0, const char *name=0)
 ~FloatSpinBox ()

Protected Member Functions

virtual QString mapValueToText (int value)
virtual int mapTextToValue (bool *ok=0)
virtual void valueChange ()
virtual void keyPressEvent (QKeyEvent *)
bool eventFilter (QObject *, QEvent *)

Private Attributes

QDoubleValidator * dVal
int dec


Detailed Description

reimplements QSpinBox for float values

Constructor & Destructor Documentation

FloatSpinBox::FloatSpinBox ( QWidget *  parent = 0,
const char *  name = 0 
)

FloatSpinBox::FloatSpinBox ( float  minValue,
float  maxValue,
int  decimals = 2,
float  step = 1.0,
QWidget *  parent = 0,
const char *  name = 0 
)

FloatSpinBox::~FloatSpinBox (  ) 

FloatSpinBox::FloatSpinBox ( QWidget *  parent = 0,
const char *  name = 0 
)

FloatSpinBox::FloatSpinBox ( float  minValue,
float  maxValue,
int  decimals = 2,
float  step = 1.0,
QWidget *  parent = 0,
const char *  name = 0 
)

FloatSpinBox::~FloatSpinBox (  ) 


Member Function Documentation

bool FloatSpinBox::eventFilter ( QObject *  pobj,
QEvent *  pev 
) [protected]

void FloatSpinBox::focusOut (  )  [signal]

void FloatSpinBox::focusOut (  )  [signal]

void FloatSpinBox::keyPressEvent ( QKeyEvent *  e  )  [protected, virtual]

int FloatSpinBox::mapTextToValue ( bool *  ok = 0  )  [protected, virtual]

QString FloatSpinBox::mapValueToText ( int  value  )  [protected, virtual]

float FloatSpinBox::maxValue (  )  const

float FloatSpinBox::minValue (  )  const

void FloatSpinBox::returnPressed (  )  [signal]

void FloatSpinBox::returnPressed (  )  [signal]

void FloatSpinBox::setRange ( double  minValue,
double  maxValue 
)

void FloatSpinBox::setValue ( double  value  )  [slot]

QSize FloatSpinBox::sizeHint (  )  const [virtual]

float FloatSpinBox::value (  )  const

void FloatSpinBox::valueChange (  )  [protected, virtual]

void FloatSpinBox::valueChanged ( double  value  )  [signal]


Member Data Documentation

int FloatSpinBox::dec [private]

QDoubleValidator* FloatSpinBox::dVal [private]


The documentation for this class was generated from the following files:

Generated on Tue Dec 9 16:55:36 2008 for QSAS by  doxygen 1.5.7