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
QgsSpinBox Class Reference

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

#include <qgsspinbox.h>

Public Member Functions

 QgsSpinBox (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

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

Member Function Documentation

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

Set the current value to the minimum.

void QgsSpinBox::resizeEvent ( QResizeEvent *  event)
protectedvirtual
void QgsSpinBox::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 QgsSpinBox::showClearButton ( ) const
inline

Property Documentation

bool QgsSpinBox::showClearButton
readwrite

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