OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::DoubleSpinBox Class Reference

#include "DoubleSpinBox.h"

Inheritance diagram for ot::DoubleSpinBox:
ot::QWidgetInterface

Signals

void valueChangeCompleted (double _value)
 

Public Member Functions

 DoubleSpinBox (QWidget *_parentWidget=(QWidget *) nullptr)
 
 DoubleSpinBox (double _min, double _max, double _value, int _precision=2, QWidget *_parentWidget=(QWidget *) nullptr)
 
virtual ~DoubleSpinBox ()
 
virtual QWidget * getQWidget (void) override
 Returns a pointer to the root widget of this object.
 
void setChangeDelay (int _delayInMs)
 
- Public Member Functions inherited from ot::QWidgetInterface
 QWidgetInterface ()
 
virtual ~QWidgetInterface ()
 
void setOTWidgetFlags (const WidgetFlags &_flags)
 
const WidgetFlagsotWidgetFlags (void) const
 
virtual void otWidgetFlagsChanged (const WidgetFlags &_flags)
 
void centerOnParent (const QWidget *const _parentWidget)
 Centers this widget on the parent. If no parent is provided the widget will center on the screen.
 
QPoint calculateCenterOnParentPos (const QWidget *const _parentWidget)
 Calculates the top left corner of this widget centered on the parent widget. If no parent is provided the widget will center on the screen.
 

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *_event) override
 
virtual void focusOutEvent (QFocusEvent *_event) override
 

Additional Inherited Members

- Protected Attributes inherited from ot::QWidgetInterface
WidgetFlags m_widgetFlags
 

Constructor & Destructor Documentation

◆ DoubleSpinBox() [1/2]

ot::DoubleSpinBox::DoubleSpinBox ( QWidget * _parentWidget = (QWidget*)nullptr)

◆ DoubleSpinBox() [2/2]

ot::DoubleSpinBox::DoubleSpinBox ( double _min,
double _max,
double _value,
int _precision = 2,
QWidget * _parentWidget = (QWidget*)nullptr )

◆ ~DoubleSpinBox()

ot::DoubleSpinBox::~DoubleSpinBox ( )
virtual

Member Function Documentation

◆ focusOutEvent()

void ot::DoubleSpinBox::focusOutEvent ( QFocusEvent * _event)
overrideprotectedvirtual

◆ getQWidget()

virtual QWidget * ot::DoubleSpinBox::getQWidget ( void )
inlineoverridevirtual

Returns a pointer to the root widget of this object.

Implements ot::QWidgetInterface.

◆ keyPressEvent()

void ot::DoubleSpinBox::keyPressEvent ( QKeyEvent * _event)
overrideprotectedvirtual

◆ setChangeDelay()

void ot::DoubleSpinBox::setChangeDelay ( int _delayInMs)

◆ valueChangeCompleted

void ot::DoubleSpinBox::valueChangeCompleted ( double _value)
signal

The documentation for this class was generated from the following files: