LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PositiveLengthEdit Class Referencefinal

The PositiveLengthEdit class is a widget to view/edit librepcb::PositiveLength values. More...

#include <positivelengthedit.h>

+ Inheritance diagram for PositiveLengthEdit:
+ Collaboration diagram for PositiveLengthEdit:

Signals

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

Public Member Functions

 PositiveLengthEdit (QWidget *parent=nullptr) noexcept
 
 PositiveLengthEdit (const PositiveLengthEdit &other)=delete
 
virtual ~PositiveLengthEdit () noexcept
 
const PositiveLengthgetValue () const noexcept
 
void setValue (const PositiveLength &value) noexcept
 
void setUnit (const LengthUnit &unit) noexcept
 
PositiveLengthEditoperator= (const PositiveLengthEdit &rhs)=delete
 
- Public Member Functions inherited from NumberEditBase
 NumberEditBase (QWidget *parent=nullptr) noexcept
 
 NumberEditBase (const NumberEditBase &other)=delete
 
virtual ~NumberEditBase () 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 () noexceptoverride
 
void spinBoxValueChanged (double value) noexceptoverride
 

Private Attributes

PositiveLength mMinValue
 
PositiveLength mMaxValue
 
PositiveLength mValue
 
LengthUnit mUnit
 

Additional Inherited Members

- Protected Attributes inherited from NumberEditBase
QScopedPointer< DoubleSpinBoxmSpinBox
 

Detailed Description

The PositiveLengthEdit class is a widget to view/edit librepcb::PositiveLength values.

Constructor & Destructor Documentation

PositiveLengthEdit ( QWidget *  parent = nullptr)
explicitnoexcept
PositiveLengthEdit ( const PositiveLengthEdit other)
delete
~PositiveLengthEdit ( )
virtualnoexcept

Member Function Documentation

const PositiveLength& getValue ( ) const
inlinenoexcept
void setValue ( const PositiveLength value)
noexcept
void setUnit ( const LengthUnit unit)
noexcept
PositiveLengthEdit& operator= ( const PositiveLengthEdit rhs)
delete
void valueChanged ( const PositiveLength value)
signal

+ Here is the caller graph for this function:

void updateSpinBox ( )
overrideprivatevirtualnoexcept

Implements NumberEditBase.

+ Here is the call graph for this function:

void spinBoxValueChanged ( double  value)
overrideprivatevirtualnoexcept

Implements NumberEditBase.

+ Here is the call graph for this function:

Member Data Documentation

PositiveLength mMinValue
private
PositiveLength mMaxValue
private
PositiveLength mValue
private
LengthUnit mUnit
private

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