#include <floatspinbox.h>
Inheritance diagram for FloatSpinBox::
Public Slots | |
void | setDoubleRange (double min, double max) |
void | setDoubleMinValue (double min) |
void | setDoubleMaxValue (double max) |
void | setDoubleLineStep (double step) |
void | setDoubleValue (double val) |
Signals | |
void | valueChanged (double) |
Public Methods | |
FloatSpinBox (QWidget *parent=0, const char *name=0) | |
FloatSpinBox (double minValue, double maxValue, double step=0.1, QWidget *parent=0, const char *name=0) | |
~FloatSpinBox () | |
void | stepUp () |
void | stepDown () |
void | stepUp (int howMany) |
void | stepDown (int howMany) |
void | setCursorWarping (bool onOff) |
bool | cursorWarping () const |
void | setDoubleFormat (char f='g', int prec=4) |
void | setDoubleMinValue (const QString &min) |
void | setDoubleMaxValue (const QString &max) |
void | setDoubleLineStep (const QString &step) |
void | setDoubleValue (const QString &val) |
QString | doubleMinValueStr () const |
QString | doubleMaxValueStr () const |
QString | doubleLineStepStr () const |
QString | doubleValueStr () const |
double | doubleMinValue () const |
double | doubleMaxValue () const |
double | doubleLineStep () const |
double | doubleValue () const |
Protected Methods | |
int | mapTextToValue (bool *) |
QString | mapValueToText (int v) |
void | valueChange () |
void | mousePressEvent (QMouseEvent *) |
void | mouseReleaseEvent (QMouseEvent *) |
void | mouseMoveEvent (QMouseEvent *) |
void | keyPressEvent (QKeyEvent *) |
bool | eventFilter (QObject *, QEvent *) |
Works just like a normal QSpinBox, but
double
floating point offset to use when converting back and forth between the int
and double
representations. An exercise for the reader, perhaps.
|
Constructs a spin box with the default range and step value. |
|
Constructs a spin box with the specified range and step value. The range is inclusive.
|
|
Returns whether the cursor is warped during munging when it gets to the edge of the screen. Default value is |
|
Returns the current line step of the spinner as a double. This is the amount the spinner will be incremented in response to clicks of the up and down buttons and in response to the up and down arrow keys. Analogous to QSpinBox::lineStep() for the standard QSpinBox. |
|
Returns the floating point line step as a string.
This is here because QDesigner 2.3.0 won't allow a user to set properties that are doubles, just strings or ints or the like. The line step property appears in QDesigner as |
|
Returns the maximum value of the spinner as a double. Analogous to QSpinBox::maxValue() for the standard QSpinBox. |
|
Returns the maximum value of the spinner allowed as a string.
This is here because QDesigner 2.3.0 won't allow a user to set properties that are doubles, just strings or ints or the like. The max property appears in QDesigner as |
|
Returns the minimum value of the spinner as a double. Analogous to QSpinBox::minValue() for the standard QSpinBox. |
|
Returns the minimum value of the spinner allowed as a string.
This is here because QDesigner 2.3.0 won't allow a user to set properties that are doubles, just strings or ints or the like. The min property appears in QDesigner as |
|
Returns the current value of the spinner as a double. Analogous to QSpinBox::value() for the standard QSpinBox. |
|
Return the floating point value of the spinner as a string.
This is here because QDesigner 2.3.0 won't allow a user to set properties that are doubles, just strings or ints or the like. The value property appears in QDesigner as |
|
Reimplemented for internal reasons; the API is not affected. |
|
Reimplemented for internal reasons; the API is not affected. |
|
Reimplemented for internal reasons; the API is not affected. |
|
Reimplemented for internal reasons; the API is not affected. |
|
Reimplemented for internal reasons; the API is not affected. |
|
Reimplemented for internal reasons; the API is not affected. |
|
Reimplemented for internal reasons; the API is not affected. |
|
Sets whether the cursor will be warped during munging when it gets to the edge of the screen. Default value is |
|
Sets the floating point output format for the spinner to use. These parameters are passed to QString::setNum() in order to convert the floating point value to a string. |
|
Sets the current floating point line step of the spinner. This is the amount the spinner will be incremented in response to clicks of the up and down buttons and in response to the up and down arrow keys. Analogous to QSpinBox::setLineStep() for the standard QSpinBox.
|
|
Sets the floating point line step using a string.
This is here because QDesigner 2.3.0 won't allow a user to set properties that are doubles, just strings or ints or the like. The line step property appears in QDesigner as |
|
Set the maximum allowable floating point value for the spinner. Analogous to QSpinBox::setMaxValue() for the standard QSpinBox.
|
|
Sets the maximum value of the spinner to be allowed using a string.
This is here because QDesigner 2.3.0 won't allow a user to set properties that are doubles, just strings or ints or the like. The max property appears in QDesigner as |
|
Set the minimum allowable floating point value for the spinner. Analogous to QSpinBox::setMinValue() for the standard QSpinBox.
|
|
Sets the minimum value of the spinner to be allowed using a string.
This is here because QDesigner 2.3.0 won't allow a user to set properties that are doubles, just strings or ints or the like. The min property appears in QDesigner as |
|
Sets the floating point range of allowed values for the spin box.
|
|
Sets the current value of the spinner as a double. Analogous to QSpinBox::setValue() for the standard QSpinBox.
|
|
Sets the floating point value of the spinner using a string.
This is here because QDesigner 2.3.0 won't allow a user to set properties that are doubles, just strings or ints or the like. The value property appears in QDesigner as |
|
Steps the value down by
|
|
Reimplemented for internal reasons; the API is not affected. |
|
Steps the value up by
|
|
Reimplemented for internal reasons; the API is not affected. |
|
Reimplemented for internal reasons; the API is not affected. |