From 5bead467d7bf5d2249b3fc37647f8ff420d70792 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 1 Jun 2014 21:02:42 -0700 Subject: Rename two C++ methods to the more typical CamelCase Silly little change. Whatever. Signed-off-by: Dirk Hohndel --- qt-ui/profile/diveprofileitem.cpp | 10 +++++----- qt-ui/profile/diveprofileitem.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'qt-ui') 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 flags) +void DiveGasPressureItem::plotPressureValue(int mbar, int sec, QFlags 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 flags, struct gasmix gasmix) +void DiveGasPressureItem::plotGasValue(int mbar, int sec, QFlags 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 align); - void plot_gas_value(int mbar, int sec, QFlags align, struct gasmix gasmix); + void plotPressureValue(int mbar, int sec, QFlags align); + void plotGasValue(int mbar, int sec, QFlags align, struct gasmix gasmix); QVector polygons; }; -- cgit v1.2.3-70-g09d2