FougTools
0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
|
Provides a QDoubleSpinBox adapted to the interface of AbstractLengthEditor. More...
#include <qttools/gui/length_double_spinbox.h>
Public Slots | |
void | updateEditor (QLocale::MeasurementSystem newSys) Q_DECL_OVERRIDE |
Public Member Functions | |
LengthDoubleSpinBox (QWidget *parent=NULL) | |
~LengthDoubleSpinBox () | |
double | length () const Q_DECL_OVERRIDE |
Length in millimeter (mm) More... | |
Q_SLOT void | setLength (double v) Q_DECL_OVERRIDE |
Set the length in millimeter (mm) to be edited. More... | |
![]() | |
AbstractLengthEditor () | |
double | qtyValue () const Q_DECL_OVERRIDE |
void | setQtyValue (double v) Q_DECL_OVERRIDE |
MetricUnit | preferredMetricUnit () const |
virtual void | setPreferredMetricUnit (MetricUnit unit) |
ImperialUnit | preferredImperialUnit () const |
virtual void | setPreferredImperialUnit (ImperialUnit unit) |
![]() | |
AbstractQuantityEditor () | |
virtual | ~AbstractQuantityEditor () |
virtual void | updateEditor (QLocale::MeasurementSystem newSys) |
Additional Inherited Members | |
![]() | |
enum | MetricUnit { MeterUnit, CentimeterUnit, MillimeterUnit } |
enum | ImperialUnit { InchUnit, FootUnit, YardUnit } |
![]() | |
static QVector< MetricUnit > | allMetricUnits () |
static QVector< ImperialUnit > | allImperialUnits () |
static QString | unitText (MetricUnit unit) |
static QString | unitText (ImperialUnit unit) |
static double | asMetricLength (double len, MetricUnit unit) |
static double | asImperialLength (double len, ImperialUnit unit) |
![]() | |
QLocale::MeasurementSystem | measurementSystem () const |
Provides a QDoubleSpinBox adapted to the interface of AbstractLengthEditor.
qtgui::LengthDoubleSpinBox::LengthDoubleSpinBox | ( | QWidget * | parent = NULL | ) |
qtgui::LengthDoubleSpinBox::~LengthDoubleSpinBox | ( | ) |
|
virtual |
Length in millimeter (mm)
Implements qtgui::AbstractLengthEditor.
|
virtual |
Set the length in millimeter (mm) to be edited.
Implements qtgui::AbstractLengthEditor.
|
slot |