Inviwo 0.9.12-pre
Inviwo documentation
|
#include <customdoublespinboxqt.h>
Public Member Functions | |
CustomDoubleSpinBoxQt (QWidget *parent=0) | |
virtual QString | textFromValue (double value) const |
QSize | sizeHint () const |
void | setDecimals (int decimals) |
virtual void | timerEvent (QTimerEvent *event) |
Overrides the timerEvent to prevent spinbox to be updated twice in case of calculations being slows. | |
Protected Attributes | |
QSize | cachedSizeHint_ |
int | displayDecimals_ |
Enables displaying a value with a certain precision without truncating the actual value, which QDoubleSpinBox does.
void inviwo::CustomDoubleSpinBoxQt::setDecimals | ( | int | decimals | ) |
Override QDoubleSpinBox decimals so that we can cache size and decimals to display.
|
inline |
Override QDoubleSpinBox size hint so that it does not use the one for many decimals.