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... | |
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.
|
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.
|
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.
void VuoSpinBox::setButtonMaximum | ( | int | buttonMaximum | ) |
Sets the maximum value that can be entered using the buttons.
Definition at line 76 of file VuoSpinBox.cc.
void VuoSpinBox::setButtonMinimum | ( | int | buttonMinimum | ) |
Sets the minimum value that can be entered using the buttons.
Definition at line 68 of file VuoSpinBox.cc.
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.
|
protected |
Determines whether the up and/or down arrows are enabled.
Definition at line 29 of file VuoSpinBox.cc.