15#ifndef QGSLAYOUTUNITSCOMBOBOX_H
16#define QGSLAYOUTUNITSCOMBOBOX_H
23#include <QDoubleSpinBox>
100 void indexChanged(
int index );
107 QList<QPointer<QDoubleSpinBox>> mLinkedSpinBoxes;
LayoutUnit
Layout measurement units.
@ Millimeters
Millimeters.
Provides a method of converting QgsLayoutMeasurements from one unit to another.
void linkToWidget(QDoubleSpinBox *widget)
Registers a spin box widget as linked with the combo box.
QgsLayoutMeasurementConverter * converter() const
Returns the converter used when automatically converting units for linked widgets.
void unitChanged(Qgis::LayoutUnit unit)
Emitted when the unit is changed.
void setConverter(QgsLayoutMeasurementConverter *converter)
Sets a converter to use when automatically converting units for linked widgets.
void changed(int unit)
Emitted when the unit is changed.
void setUnit(Qgis::LayoutUnit unit)
Sets the unit currently selected in the combo box.
QgsLayoutUnitsComboBox(QWidget *parent=nullptr)
Constructor for QgsLayoutUnitsComboBox.