Commit 177598b6 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Const'ify method

parent a63e63a2
......@@ -49,17 +49,17 @@ UnitSettingsDialog::UnitSettingsDialog(QWidget* parent) : QWidget(parent)
setLayout(layout);
}
int UnitSettingsDialog::getEnergyUnitId()
int UnitSettingsDialog::getEnergyUnitId() const
{
return m_comboBoxLEnergiesUnit->getCurrentUnitId();
}
int UnitSettingsDialog::getLenghtUnitId()
int UnitSettingsDialog::getLenghtUnitId() const
{
return m_comboBoxLengthUnit->getCurrentUnitId();
}
int UnitSettingsDialog::getTemperatureUnitId()
int UnitSettingsDialog::getTemperatureUnitId() const
{
return m_comboBoxLTemperatureUnit->getCurrentUnitId();
}
......
......@@ -16,11 +16,11 @@ public:
explicit UnitSettingsDialog(QWidget* parent = nullptr);
virtual ~UnitSettingsDialog();
int getLenghtUnitId();
int getLenghtUnitId() const;
int getEnergyUnitId();
int getEnergyUnitId() const;
int getTemperatureUnitId();
int getTemperatureUnitId() const;
private:
KalziumUnitCombobox *m_comboBoxLengthUnit;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment