QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Properties | List of all members
QgsDoubleSpinBox Class Reference

The QgsSpinBox is a spin box with a clear button that will set the value to the minimum. More...

#include <qgsdoublespinbox.h>

Public Member Functions

 QgsDoubleSpinBox (QWidget *parent=0)
void setShowClearButton (const bool showClearButton)
 determines if the widget will show a clear button
bool showClearButton () const
virtual void clear ()
 Set the current value to the minimum.

Protected Member Functions

virtual void resizeEvent (QResizeEvent *event)
virtual void changeEvent (QEvent *event)

Properties

bool showClearButton

Detailed Description

The QgsSpinBox is a spin box with a clear button that will set the value to the minimum.

This minum can then be handled by a special value text.

Constructor & Destructor Documentation

QgsDoubleSpinBox::QgsDoubleSpinBox ( QWidget *  parent = 0)
explicit

Member Function Documentation

void QgsDoubleSpinBox::changeEvent ( QEvent *  event)
protectedvirtual
void QgsDoubleSpinBox::clear ( )
virtual

Set the current value to the minimum.

void QgsDoubleSpinBox::resizeEvent ( QResizeEvent *  event)
protectedvirtual
void QgsDoubleSpinBox::setShowClearButton ( const bool  showClearButton)

determines if the widget will show a clear button

Note
the clear button will set the widget to its minimum value
bool QgsDoubleSpinBox::showClearButton ( ) const
inline

Property Documentation

bool QgsDoubleSpinBox::showClearButton
readwrite

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