Identical to a QDoubleSpinBox, but doubles/halves the value upon button presses.
More...
#include <pqScaledSpinBox.h>
Inherits QDoubleSpinBox.
Identical to a QDoubleSpinBox, but doubles/halves the value upon button presses.
Definition at line 14 of file pqScaledSpinBox.h.
◆ pqScaledSpinBox() [1/2]
pqScaledSpinBox::pqScaledSpinBox |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ pqScaledSpinBox() [2/2]
pqScaledSpinBox::pqScaledSpinBox |
( |
QDoubleSpinBox * |
other | ) |
|
|
explicit |
◆ ~pqScaledSpinBox()
pqScaledSpinBox::~pqScaledSpinBox |
( |
| ) |
|
|
override |
◆ setValue
void pqScaledSpinBox::setValue |
( |
double |
val | ) |
|
|
slot |
Overrides QDoubleSpinBox::setValue()
◆ setScalingFactor()
void pqScaledSpinBox::setScalingFactor |
( |
double |
scaleFactor | ) |
|
Sets the Scale Factor used to increase / decrease the widget value.
When scaling up, the value is multiplied by the Scale Factor. When scaling down, the value is divided by the Scale Factor.
◆ keyPressEvent()
void pqScaledSpinBox::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotected |
Overrides QDoubleSpinBox::keyPressEvent()
◆ onValueChanged
void pqScaledSpinBox::onValueChanged |
( |
double |
newValue | ) |
|
|
protectedslot |
The documentation for this class was generated from the following file: