QtPdWidgets
2.3.1
|
Spinbox containing a double value. More...
#include <DoubleSpinBox.h>
Classes | |
struct | Impl |
Public Member Functions | |
DoubleSpinBox (QWidget *parent=0) | |
Constructor. More... | |
virtual | ~DoubleSpinBox () |
Destructor. More... | |
void | clearData () |
void | setMinimum (double) |
void | setMaximum (double) |
Properties | |
double | minimum |
double | maximum |
Private Slots | |
PD_PRIVATE void | on_textChanged (const QString &) |
Called, when the user changes the text in the line edit. More... | |
PD_PRIVATE void | on_editingFinished () |
Called, when the input focus leaves the line edit. More... | |
Private Member Functions | |
PD_PRIVATE void | keyPressEvent (QKeyEvent *) override |
Handles keybord events from the user. More... | |
PD_PRIVATE void | stepBy (int) override |
Called, when the user clicks on the up/down buttons/keys. More... | |
PD_PRIVATE void | newValues (std::chrono::nanoseconds) override |
This virtual method is called by the ProcessVariable, if its value changes. More... | |
Private Attributes | |
struct PD_PRIVATE | Impl |
std::unique_ptr< Impl > | impl |
Spinbox containing a double value.
DoubleSpinBox::DoubleSpinBox | ( | QWidget * | parent = 0 | ) |
|
virtual |
Destructor.
void DoubleSpinBox::clearData | ( | ) |
References impl.
|
overrideprivate |
Handles keybord events from the user.
Overloads the keyPressEvent handler from QDoubleSpinBox.
References impl.
|
overrideprivate |
This virtual method is called by the ProcessVariable, if its value changes.
References impl.
|
privateslot |
Called, when the input focus leaves the line edit.
Editing shall be canceled in this case.
References impl.
Referenced by DoubleSpinBox().
|
privateslot |
Called, when the user changes the text in the line edit.
References impl.
Referenced by DoubleSpinBox().
void DoubleSpinBox::setMaximum | ( | double | value | ) |
References impl.
void DoubleSpinBox::setMinimum | ( | double | value | ) |
References impl.
|
overrideprivate |
Called, when the user clicks on the up/down buttons/keys.
This is a virtual function from QAbstractSpinBox, that is overloaded here.
When the user is editing the text value (the control has base color), the value shall be incremented, but not yet sent to the process. When no editing is in progress (control is white), the value shall be sent to the process, immediately.
|
private |
|
private |
Referenced by clearData(), keyPressEvent(), newValues(), on_editingFinished(), on_textChanged(), setMaximum(), setMinimum(), and stepBy().
|
readwrite |
Referenced by stepBy().
|
readwrite |
Referenced by stepBy().