mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Silence warnings in DiveCartesianAxis
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
44deaf6c51
commit
07606160cb
2 changed files with 4 additions and 3 deletions
|
@ -109,6 +109,7 @@ void DiveCartesianAxis::setOrientation(Orientation o)
|
||||||
|
|
||||||
QColor DiveCartesianAxis::colorForValue(double value)
|
QColor DiveCartesianAxis::colorForValue(double value)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(value)
|
||||||
return QColor(Qt::black);
|
return QColor(Qt::black);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -414,9 +415,9 @@ QString TimeAxis::textForValue(double value)
|
||||||
return QString::number(nr);
|
return QString::number(nr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TimeAxis::updateTicks()
|
void TimeAxis::updateTicks(color_indice_t color)
|
||||||
{
|
{
|
||||||
DiveCartesianAxis::updateTicks();
|
DiveCartesianAxis::updateTicks(color);
|
||||||
if (maximum() > 600) {
|
if (maximum() > 600) {
|
||||||
for (int i = 0; i < labels.count(); i++) {
|
for (int i = 0; i < labels.count(); i++) {
|
||||||
labels[i]->setVisible(i % 2);
|
labels[i]->setVisible(i % 2);
|
||||||
|
|
|
@ -95,7 +95,7 @@ class TimeAxis : public DiveCartesianAxis {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
TimeAxis(ProfileWidget2 *widget);
|
TimeAxis(ProfileWidget2 *widget);
|
||||||
virtual void updateTicks();
|
void updateTicks(color_indice_t color = TIME_GRID);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
QString textForValue(double value);
|
QString textForValue(double value);
|
||||||
|
|
Loading…
Add table
Reference in a new issue