aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-04-09 22:19:59 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-04-10 14:15:35 -0700
commit8c72ac6b9b00778e03dd60fe30bf4ba53d87ab55 (patch)
treef78894db279d1d985722e58109ec244c0ceb3336 /desktop-widgets
parent4daf6878768fabb2db15fae4e202aacc47676dee (diff)
downloadsubsurface-8c72ac6b9b00778e03dd60fe30bf4ba53d87ab55.tar.gz
profile: remove force parameter from ProfileWidget2::plotDive()
The last user was removed in 2789bb05b133a7cf54081d58d4f5c51c8977e951. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets')
-rw-r--r--desktop-widgets/divelogexportdialog.cpp4
-rw-r--r--desktop-widgets/mainwindow.cpp8
-rw-r--r--desktop-widgets/printer.cpp4
3 files changed, 8 insertions, 8 deletions
diff --git a/desktop-widgets/divelogexportdialog.cpp b/desktop-widgets/divelogexportdialog.cpp
index 30e389dde..a685fb414 100644
--- a/desktop-widgets/divelogexportdialog.cpp
+++ b/desktop-widgets/divelogexportdialog.cpp
@@ -229,7 +229,7 @@ void exportProfile(const struct dive *dive, const QString filename)
profile->setPrintMode(true);
double scale = profile->getFontPrintScale();
profile->setFontPrintScale(4 * scale);
- profile->plotDive(dive, 0, true, false, true);
+ profile->plotDive(dive, 0, false, true);
QImage image = QImage(profile->size() * 4, QImage::Format_RGB32);
QPainter paint;
paint.begin(&image);
@@ -238,5 +238,5 @@ void exportProfile(const struct dive *dive, const QString filename)
profile->setToolTipVisibile(true);
profile->setFontPrintScale(scale);
profile->setPrintMode(false);
- profile->plotDive(dive, 0, true); // TODO: Shouldn't this plot the current dive?
+ profile->plotDive(dive, 0); // TODO: Shouldn't this plot the current dive?
}
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index f01d3ea48..900c1f7ae 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -432,7 +432,7 @@ void MainWindow::selectionChanged()
configureToolbar();
enableDisableOtherDCsActions();
}
- graphics->plotDive(current_dive, dc_number, false);
+ graphics->plotDive(current_dive, dc_number);
MapWidget::instance()->selectionChanged();
}
@@ -736,7 +736,7 @@ void MainWindow::refreshProfile()
{
showProfile();
configureToolbar();
- graphics->plotDive(current_dive, dc_number, true);
+ graphics->plotDive(current_dive, dc_number);
}
void MainWindow::planCanceled()
@@ -921,7 +921,7 @@ void MainWindow::on_actionPreviousDC_triggered()
unsigned nrdc = number_of_computers(current_dive);
dc_number = (dc_number + nrdc - 1) % nrdc;
configureToolbar();
- graphics->plotDive(current_dive, dc_number, false);
+ graphics->plotDive(current_dive, dc_number);
mainTab->updateDiveInfo();
}
@@ -930,7 +930,7 @@ void MainWindow::on_actionNextDC_triggered()
unsigned nrdc = number_of_computers(current_dive);
dc_number = (dc_number + 1) % nrdc;
configureToolbar();
- graphics->plotDive(current_dive, dc_number, false);
+ graphics->plotDive(current_dive, dc_number);
mainTab->updateDiveInfo();
}
diff --git a/desktop-widgets/printer.cpp b/desktop-widgets/printer.cpp
index 022db1a07..5a26ad66d 100644
--- a/desktop-widgets/printer.cpp
+++ b/desktop-widgets/printer.cpp
@@ -38,7 +38,7 @@ void Printer::putProfileImage(const QRect &profilePlaceholder, const QRect &view
int y = profilePlaceholder.y() - viewPort.y();
// use the placeHolder and the viewPort position to calculate the relative position of the dive profile.
QRect pos(x, y, profilePlaceholder.width(), profilePlaceholder.height());
- profile->plotDive(dive, 0, true, true);
+ profile->plotDive(dive, 0, true);
if (!printOptions.color_selected) {
QImage image(pos.width(), pos.height(), QImage::Format_ARGB32);
@@ -193,7 +193,7 @@ void Printer::render(int pages)
qPrefDisplay::set_animation_speed(animationOriginal);
//replot the dive after returning the settings
- profile->plotDive(current_dive, dc_number, true, true);
+ profile->plotDive(current_dive, dc_number, true);
}
//value: ranges from 0 : 100 and shows the progress of the templating engine