20#ifndef LIBREPCB_EDITOR_RATIOEDIT_H
21#define LIBREPCB_EDITOR_RATIOEDIT_H
26#include "../widgets/numbereditbase.h"
51 explicit RatioEdit(QWidget* parent =
nullptr)
noexcept;
The Ratio class is used to represent a ratio number (e.g. 13.37%)
Definition ratio.h:44
The NumberEditBase class is a widget base class to edit various kinds of numbers.
Definition numbereditbase.h:49
The RatioEdit class is a widget to view/edit librepcb::Ratio values.
Definition ratioedit.h:46
RatioEdit & operator=(const RatioEdit &rhs)=delete
RatioEdit(const RatioEdit &other)=delete
void spinBoxValueChanged(double value) noexcept override
Definition ratioedit.cpp:75
void valueChanged(const Ratio &value)
virtual ~RatioEdit() noexcept
Definition ratioedit.cpp:46
void setValue(const Ratio &value) noexcept
Definition ratioedit.cpp:53
const Ratio & getValue() const noexcept
Definition ratioedit.h:56
Ratio mMinValue
Definition ratioedit.h:72
Ratio mMaxValue
Definition ratioedit.h:73
Ratio mValue
Definition ratioedit.h:74
void updateSpinBox() noexcept override
Definition ratioedit.cpp:69
Definition occmodel.cpp:76