Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Kalzium
Commits
177598b6
Commit
177598b6
authored
Jan 05, 2022
by
Laurent Montel
😁
Browse files
Const'ify method
parent
a63e63a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/unitsettingsdialog.cpp
View file @
177598b6
...
...
@@ -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
();
}
...
...
src/unitsettingsdialog.h
View file @
177598b6
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment