Widget that allows to select one digit by Up/Down keys and can switch states between editing and inactive (where Up and Down keys are ignored).
More...
#include <digitSelector.h>
Widget that allows to select one digit by Up/Down keys and can switch states between editing and inactive (where Up and Down keys are ignored).
DigitSelector::DigitSelector |
( |
bool & |
editingMode, |
|
|
int |
height |
|
) |
| |
Constructor.
- Parameters
-
editingMode | - reference to mode flag. If this flag is true, number is currently edited and shall be increased/decreased by up/down buttons. |
height | - height of a digit. |
void trikGui::DigitSelector::downPressed |
( |
| ) |
|
|
signal |
Widget is not in editing mode and user pressed "down".
Event propagation to parent widget does not work for some reason in this case.
void DigitSelector::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotected |
void DigitSelector::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotected |
void trikGui::DigitSelector::upPressed |
( |
| ) |
|
|
signal |
Widget is not in editing mode and user pressed "up".
Event propagation to parent widget does not work for some reason in this case.
void trikGui::DigitSelector::valueChanged |
( |
int |
newValue | ) |
|
|
signal |
Digit is changed by user.
The documentation for this class was generated from the following files: