summaryrefslogtreecommitdiffstats
path: root/profile-widget
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2016-03-08 02:22:10 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-08 20:57:52 -0800
commit07606160cbe9a9f0b3d6097e229cc992a2df2f3c (patch)
treeb710b5f2ae5d6f08e31f34b109c9754c62ac4b03 /profile-widget
parent44deaf6c5176df3ee8f1277db8ddba2fe3c45cfc (diff)
downloadsubsurface-07606160cbe9a9f0b3d6097e229cc992a2df2f3c.tar.gz
Silence warnings in DiveCartesianAxis
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile-widget')
-rw-r--r--profile-widget/divecartesianaxis.cpp5
-rw-r--r--profile-widget/divecartesianaxis.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/profile-widget/divecartesianaxis.cpp b/profile-widget/divecartesianaxis.cpp
index 2c3b7fe79..a453d69ea 100644
--- a/profile-widget/divecartesianaxis.cpp
+++ b/profile-widget/divecartesianaxis.cpp
@@ -109,6 +109,7 @@ void DiveCartesianAxis::setOrientation(Orientation o)
QColor DiveCartesianAxis::colorForValue(double value)
{
+ Q_UNUSED(value)
return QColor(Qt::black);
}
@@ -414,9 +415,9 @@ QString TimeAxis::textForValue(double value)
return QString::number(nr);
}
-void TimeAxis::updateTicks()
+void TimeAxis::updateTicks(color_indice_t color)
{
- DiveCartesianAxis::updateTicks();
+ DiveCartesianAxis::updateTicks(color);
if (maximum() > 600) {
for (int i = 0; i < labels.count(); i++) {
labels[i]->setVisible(i % 2);
diff --git a/profile-widget/divecartesianaxis.h b/profile-widget/divecartesianaxis.h
index 4e06b9a82..a603cebc7 100644
--- a/profile-widget/divecartesianaxis.h
+++ b/profile-widget/divecartesianaxis.h
@@ -95,7 +95,7 @@ class TimeAxis : public DiveCartesianAxis {
Q_OBJECT
public:
TimeAxis(ProfileWidget2 *widget);
- virtual void updateTicks();
+ void updateTicks(color_indice_t color = TIME_GRID);
protected:
QString textForValue(double value);