Workspace 6.21.5
|
#include <DataAnalysis/Widgets/scientificdoublespinbox.h>
Inherits QAbstractSpinBox.
Public Slots | |
void | setValue (double) |
Signals | |
void | valueChanged (double) |
Public Member Functions | |
ScientificDoubleSpinBox (QWidget *parent=nullptr) | |
~ScientificDoubleSpinBox () override | |
void | contextMenuEvent (QContextMenuEvent *event) override |
double | getMaximumValue () |
double | getMinimumValue () |
int | getNumDecimals () const |
int | getStepMagnitude () |
double | getValue () const |
void | setMaximumValue (double maximum) |
void | setMinimumValue (double minimum) |
void | setNumDecimals (int num) |
void | setStepMagnitude (int magnitude) |
void | setValue (double value, bool updateData) |
Protected Member Functions | |
void | stepBy (int steps) override |
QAbstractSpinBox::StepEnabled | stepEnabled () const override |
QString | textFromValue (double value) const |
double | valueFromText (const QString &text) const |
Properties | |
int | decimals |
double | maximum |
double | minimum |
int | stepMagnitude |
double | value |
A double spin box widget which displays numbers in scientific notation
ScientificDoubleSpinBox | ( | QWidget * | parent = nullptr | ) |
|
overridedefault |
|
override |
Show the settings window when a user right clicks on the spinbox
|
inline |
|
inline |
|
inline |
|
inline |
double getValue | ( | ) | const |
Return the current value
|
inline |
|
inline |
|
inline |
|
inline |
void setValue | ( | double | value, |
bool | updateData | ||
) |
Set the text displayed in the spinbox given a numerical value
value | - new value that the widget will display |
updateData | - specifies whether or not an editingFinished() signal should be emitted after new value is set |
|
slot |
Set the text displayed in the spinbox given a numerical value
value | - new value that the widget will display |
|
overrideprotected |
Adjust the value when the user clicks on the step up/down
|
overrideprotected |
Enabled/disable steps when necessary
|
protected |
Convert a value to text in scientific notation
|
signal |
|
protected |
Convert a value from text
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |
|
readwrite |