summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveprofileitem.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-01 21:02:42 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-06-01 21:02:42 -0700
commit5bead467d7bf5d2249b3fc37647f8ff420d70792 (patch)
tree6d61bb165cf6bc8266ad74b0c007994731611c91 /qt-ui/profile/diveprofileitem.cpp
parentd740ad1317084ebc3ea9abfa66a1d18fed41d675 (diff)
downloadsubsurface-5bead467d7bf5d2249b3fc37647f8ff420d70792.tar.gz
Rename two C++ methods to the more typical CamelCase
Silly little change. Whatever. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveprofileitem.cpp')
-rw-r--r--qt-ui/profile/diveprofileitem.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/qt-ui/profile/diveprofileitem.cpp b/qt-ui/profile/diveprofileitem.cpp
index 84ab4a8b9..f88eef372 100644
--- a/qt-ui/profile/diveprofileitem.cpp
+++ b/qt-ui/profile/diveprofileitem.cpp
@@ -461,8 +461,8 @@ void DiveGasPressureItem::modelDataChanged(const QModelIndex &topLeft, const QMo
if (cyl != entry->cylinderindex) {
cyl = entry->cylinderindex;
if (!seen_cyl[cyl]) {
- plot_pressure_value(mbar, entry->sec, Qt::AlignRight | Qt::AlignTop);
- plot_gas_value(mbar, entry->sec, Qt::AlignRight | Qt::AlignBottom,
+ plotPressureValue(mbar, entry->sec, Qt::AlignRight | Qt::AlignTop);
+ plotGasValue(mbar, entry->sec, Qt::AlignRight | Qt::AlignBottom,
dive->cylinder[cyl].gasmix);
seen_cyl[cyl] = true;
}
@@ -473,12 +473,12 @@ void DiveGasPressureItem::modelDataChanged(const QModelIndex &topLeft, const QMo
for (cyl = 0; cyl < MAX_CYLINDERS; cyl++) {
if (last_time[cyl]) {
- plot_pressure_value(last_pressure[cyl], last_time[cyl], Qt::AlignLeft | Qt::AlignTop);
+ plotPressureValue(last_pressure[cyl], last_time[cyl], Qt::AlignLeft | Qt::AlignTop);
}
}
}
-void DiveGasPressureItem::plot_pressure_value(int mbar, int sec, QFlags<Qt::AlignmentFlag> flags)
+void DiveGasPressureItem::plotPressureValue(int mbar, int sec, QFlags<Qt::AlignmentFlag> flags)
{
const char *unit;
int pressure = get_pressure_units(mbar, &unit);
@@ -490,7 +490,7 @@ void DiveGasPressureItem::plot_pressure_value(int mbar, int sec, QFlags<Qt::Alig
texts.push_back(text);
}
-void DiveGasPressureItem::plot_gas_value(int mbar, int sec, QFlags<Qt::AlignmentFlag> flags, struct gasmix gasmix)
+void DiveGasPressureItem::plotGasValue(int mbar, int sec, QFlags<Qt::AlignmentFlag> flags, struct gasmix gasmix)
{
QString gas = gasToStr(gasmix);
DiveTextItem *text = new DiveTextItem(this);