QGIS/python/gui/editorwidgets/qgsspinbox.sip
2014-09-25 15:08:51 +02:00

22 lines
563 B
Plaintext

class QgsSpinBox : QSpinBox
{
%TypeHeaderCode
#include <qgsspinbox.h>
%End
public:
explicit QgsSpinBox( QWidget *parent /TransferThis/ = 0 );
//! determines if the widget will show a clear button
//! @note the clear button will set the widget to its minimum value
void setShowClearButton( const bool showClearButton );
bool showClearButton() const;
//! Set the current value to the minimum
virtual void clear();
protected:
virtual void resizeEvent( QResizeEvent* event );
virtual void changeEvent( QEvent* event );
};