LibrePCB Developers Documentation
UnsignedLimitedRatioEdit Class Referencefinal

The UnsignedLimitedRatioEdit class is a widget to view/edit librepcb::UnsignedLimitedRatio values. More...

#include <unsignedlimitedratioedit.h>

+ Inheritance diagram for UnsignedLimitedRatioEdit:
+ Collaboration diagram for UnsignedLimitedRatioEdit:

Signals

void valueChanged (const UnsignedLimitedRatio &value)
 
- Signals inherited from NumberEditBase
void editingFinished ()
 

Public Member Functions

 UnsignedLimitedRatioEdit (QWidget *parent=nullptr) noexcept
 
 UnsignedLimitedRatioEdit (const UnsignedLimitedRatioEdit &other)=delete
 
virtual ~UnsignedLimitedRatioEdit () noexcept
 
const UnsignedLimitedRatiogetValue () const noexcept
 
void setValue (const UnsignedLimitedRatio &value) noexcept
 
UnsignedLimitedRatioEditoperator= (const UnsignedLimitedRatioEdit &rhs)=delete
 
- Public Member Functions inherited from NumberEditBase
 NumberEditBase (QWidget *parent=nullptr) noexcept
 
 NumberEditBase (const NumberEditBase &other)=delete
 
virtual ~NumberEditBase () noexcept
 
void setReadOnly (bool readOnly) noexcept
 
void setSingleStep (tl::optional< double > step) noexcept
 
void setFrame (bool frame) noexcept
 
void selectAll () noexcept
 
NumberEditBaseoperator= (const NumberEditBase &rhs)=delete
 

Private Member Functions

void updateSpinBox () noexcept override
 
void spinBoxValueChanged (double value) noexcept override
 

Private Attributes

UnsignedLimitedRatio mMinValue
 
UnsignedLimitedRatio mMaxValue
 
UnsignedLimitedRatio mValue
 

Additional Inherited Members

virtual void updateSpinBox () noexcept=0
 
virtual void spinBoxValueChanged (double value) noexcept=0
 
- Protected Attributes inherited from NumberEditBase
QScopedPointer< DoubleSpinBoxmSpinBox
 

Detailed Description

The UnsignedLimitedRatioEdit class is a widget to view/edit librepcb::UnsignedLimitedRatio values.

Constructor & Destructor Documentation

◆ UnsignedLimitedRatioEdit() [1/2]

UnsignedLimitedRatioEdit ( QWidget *  parent = nullptr)
explicitnoexcept

◆ UnsignedLimitedRatioEdit() [2/2]

◆ ~UnsignedLimitedRatioEdit()

~UnsignedLimitedRatioEdit ( )
virtualnoexcept

Member Function Documentation

◆ getValue()

const UnsignedLimitedRatio & getValue ( ) const
inlinenoexcept

◆ setValue()

void setValue ( const UnsignedLimitedRatio value)
noexcept

◆ operator=()

UnsignedLimitedRatioEdit & operator= ( const UnsignedLimitedRatioEdit rhs)
delete

◆ valueChanged

void valueChanged ( const UnsignedLimitedRatio value)
signal

◆ updateSpinBox()

void updateSpinBox ( )
overrideprivatevirtualnoexcept

Implements NumberEditBase.

◆ spinBoxValueChanged()

void spinBoxValueChanged ( double  value)
overrideprivatevirtualnoexcept

Implements NumberEditBase.

+ Here is the call graph for this function:

Member Data Documentation

◆ mMinValue

UnsignedLimitedRatio mMinValue
private

◆ mMaxValue

UnsignedLimitedRatio mMaxValue
private

◆ mValue

UnsignedLimitedRatio mValue
private

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