diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-06-01 21:02:42 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-01 21:02:42 -0700 |
commit | 5bead467d7bf5d2249b3fc37647f8ff420d70792 (patch) | |
tree | 6d61bb165cf6bc8266ad74b0c007994731611c91 /qt-ui/profile | |
parent | d740ad1317084ebc3ea9abfa66a1d18fed41d675 (diff) | |
download | subsurface-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')
-rw-r--r-- | qt-ui/profile/diveprofileitem.cpp | 10 | ||||
-rw-r--r-- | qt-ui/profile/diveprofileitem.h | 4 |
2 files changed, 7 insertions, 7 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); diff --git a/qt-ui/profile/diveprofileitem.h b/qt-ui/profile/diveprofileitem.h index 92d48fe70..ddf8f5154 100644 --- a/qt-ui/profile/diveprofileitem.h +++ b/qt-ui/profile/diveprofileitem.h @@ -119,8 +119,8 @@ public: virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0); private: - void plot_pressure_value(int mbar, int sec, QFlags<Qt::AlignmentFlag> align); - void plot_gas_value(int mbar, int sec, QFlags<Qt::AlignmentFlag> align, struct gasmix gasmix); + void plotPressureValue(int mbar, int sec, QFlags<Qt::AlignmentFlag> align); + void plotGasValue(int mbar, int sec, QFlags<Qt::AlignmentFlag> align, struct gasmix gasmix); QVector<QPolygonF> polygons; }; |