| 24 | #include <QComboBox> |
| 25 | |
| 26 | BaseDock::BaseDock(QWidget* parent) |
| 27 | : QWidget(parent) { |
| 28 | const KConfigGroup group = Settings::group(QStringLiteral("Settings_General")); |
| 29 | m_units = (Units)group.readEntry("Units", static_cast<int>(Units::Metric)); |
| 30 | |
| 31 | if (m_units == Units::Imperial) |
| 32 | m_worksheetUnit = Worksheet::Unit::Inch; |
| 33 | } |
| 34 | |
| 35 | void BaseDock::setPlotRangeCombobox(QComboBox* cb) { |
| 36 | if (m_cbPlotRangeList) |