Vuo  2.1.2
Public Member Functions | Protected Member Functions | List of all members
VuoSpinBox Class Reference

Description

A spin box where the buttons can have a different minimum and maximum than the line edit.

Definition at line 15 of file VuoSpinBox.hh.

Public Member Functions

 VuoSpinBox (QWidget *parent=0)
 Creates a spin box where the buttons and line edit have no minimum and maximum. More...
 
void stepBy (int steps)
 Steps the spin box value up or down, clamping it to be within the buttons' minimum and maximum. More...
 
void setButtonMinimum (int buttonMinimum)
 Sets the minimum value that can be entered using the buttons. More...
 
void setButtonMaximum (int buttonMaximum)
 Sets the maximum value that can be entered using the buttons. More...
 

Protected Member Functions

QAbstractSpinBox::StepEnabled stepEnabled () const
 Determines whether the up and/or down arrows are enabled. More...
 
virtual void hideEvent (QHideEvent *event)
 Don't emit value changed events when hiding event, otherwise Vuo will update and quickly revert the value. More...
 
virtual void focusOutEvent (QFocusEvent *event)
 Don't emit value changed events when focusing out due to window close, otherwise Vuo will update and quickly revert the value. More...
 

Constructor & Destructor Documentation

◆ VuoSpinBox()

VuoSpinBox::VuoSpinBox ( QWidget *  parent = 0)

Creates a spin box where the buttons and line edit have no minimum and maximum.

Definition at line 15 of file VuoSpinBox.cc.

Member Function Documentation

◆ focusOutEvent()

void VuoSpinBox::focusOutEvent ( QFocusEvent *  event)
protectedvirtual

Don't emit value changed events when focusing out due to window close, otherwise Vuo will update and quickly revert the value.

Definition at line 85 of file VuoSpinBox.cc.

◆ hideEvent()

void VuoSpinBox::hideEvent ( QHideEvent *  event)
protectedvirtual

Don't emit value changed events when hiding event, otherwise Vuo will update and quickly revert the value.

Definition at line 100 of file VuoSpinBox.cc.

◆ setButtonMaximum()

void VuoSpinBox::setButtonMaximum ( int  buttonMaximum)

Sets the maximum value that can be entered using the buttons.

Definition at line 76 of file VuoSpinBox.cc.

◆ setButtonMinimum()

void VuoSpinBox::setButtonMinimum ( int  buttonMinimum)

Sets the minimum value that can be entered using the buttons.

Definition at line 68 of file VuoSpinBox.cc.

◆ stepBy()

void VuoSpinBox::stepBy ( int  steps)

Steps the spin box value up or down, clamping it to be within the buttons' minimum and maximum.

Definition at line 43 of file VuoSpinBox.cc.

◆ stepEnabled()

QAbstractSpinBox::StepEnabled VuoSpinBox::stepEnabled ( ) const
protected

Determines whether the up and/or down arrows are enabled.

Definition at line 29 of file VuoSpinBox.cc.


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