#include <qxrdcenterstepspinner.h>
Definition at line 7 of file qxrdcenterstepspinner.h.
QxrdCenterStepSpinner::QxrdCenterStepSpinner |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
void QxrdCenterStepSpinner::stepBy |
( |
int |
steps | ) |
|
|
virtual |
Definition at line 11 of file qxrdcenterstepspinner.cpp.
13 double newVal = value();
14 double sgn = (newVal < 0 ? -1 : 1);
15 double logVal = log10(fabs(newVal));
16 double frac = logVal - floor(logVal);
21 mul = (steps > 0 ? 2.0 : 2.0);
22 }
else if (frac < 0.5) {
23 mul = (steps > 0 ? 2.5 : 2.0);
25 mul = (steps > 0 ? 2.0 : 2.5);
35 }
else if (steps < 0) {
The documentation for this class was generated from the following files: