From 52aa7d83b6eb0200702c75425972223720fde00a Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Fri, 7 Aug 2020 21:10:46 +0200 Subject: Increase event icon size in print mode When plotting the profile in higher resolution for export, increase the icon size in the same way. This is commented out for the mobile version as that uses printMode for profile display. Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- desktop-widgets/divelogexportdialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/divelogexportdialog.cpp b/desktop-widgets/divelogexportdialog.cpp index 3204842ee..e9a4beb4e 100644 --- a/desktop-widgets/divelogexportdialog.cpp +++ b/desktop-widgets/divelogexportdialog.cpp @@ -225,11 +225,11 @@ void DiveLogExportDialog::on_buttonBox_accepted() void exportProfile(const struct dive *dive, const QString filename) { ProfileWidget2 *profile = MainWindow::instance()->graphics; - profile->plotDive(dive, true, false, true); profile->setToolTipVisibile(false); profile->setPrintMode(true); double scale = profile->getFontPrintScale(); profile->setFontPrintScale(4 * scale); + profile->plotDive(dive, true, false, true); QImage image = QImage(profile->size() * 4, QImage::Format_RGB32); QPainter paint; paint.begin(&image); @@ -238,4 +238,5 @@ void exportProfile(const struct dive *dive, const QString filename) profile->setToolTipVisibile(true); profile->setFontPrintScale(scale); profile->setPrintMode(false); + profile->plotDive(dive, true); } -- cgit v1.2.3-70-g09d2