diff options
Diffstat (limited to 'desktop-widgets')
-rw-r--r-- | desktop-widgets/divelogexportdialog.cpp | 2 | ||||
-rw-r--r-- | desktop-widgets/preferences/abstractpreferenceswidget.cpp | 4 | ||||
-rw-r--r-- | desktop-widgets/preferences/abstractpreferenceswidget.h | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/desktop-widgets/divelogexportdialog.cpp b/desktop-widgets/divelogexportdialog.cpp index cb1745483..2af8d1b80 100644 --- a/desktop-widgets/divelogexportdialog.cpp +++ b/desktop-widgets/divelogexportdialog.cpp @@ -310,7 +310,7 @@ void DiveLogExportDialog::export_TeX(const char *filename, const bool selected_o int i; int qty_cyl; int qty_weight; - float total_weight; + double total_weight; if (need_pagebreak) put_format(&buf, "\\vfill\\eject\n"); diff --git a/desktop-widgets/preferences/abstractpreferenceswidget.cpp b/desktop-widgets/preferences/abstractpreferenceswidget.cpp index 1b2aeaae5..88228ee98 100644 --- a/desktop-widgets/preferences/abstractpreferenceswidget.cpp +++ b/desktop-widgets/preferences/abstractpreferenceswidget.cpp @@ -1,7 +1,7 @@ // SPDX-License-Identifier: GPL-2.0 #include "abstractpreferenceswidget.h" -AbstractPreferencesWidget::AbstractPreferencesWidget(const QString& name, const QIcon& icon, float positionHeight) +AbstractPreferencesWidget::AbstractPreferencesWidget(const QString& name, const QIcon& icon, double positionHeight) : QWidget(), _icon(icon), _name(name), _positionHeight(positionHeight) { } @@ -16,7 +16,7 @@ QString AbstractPreferencesWidget::name() const return _name; } -float AbstractPreferencesWidget::positionHeight() const +double AbstractPreferencesWidget::positionHeight() const { return _positionHeight; } diff --git a/desktop-widgets/preferences/abstractpreferenceswidget.h b/desktop-widgets/preferences/abstractpreferenceswidget.h index 7e303d182..7466fda16 100644 --- a/desktop-widgets/preferences/abstractpreferenceswidget.h +++ b/desktop-widgets/preferences/abstractpreferenceswidget.h @@ -8,10 +8,10 @@ class AbstractPreferencesWidget : public QWidget { Q_OBJECT public: - AbstractPreferencesWidget(const QString& name, const QIcon& icon, float positionHeight); + AbstractPreferencesWidget(const QString& name, const QIcon& icon, double positionHeight); QIcon icon() const; QString name() const; - float positionHeight() const; + double positionHeight() const; /* gets the values from the preferences and should set the correct values in * the interface */ @@ -26,6 +26,6 @@ signals: private: QIcon _icon; QString _name; - float _positionHeight; + double _positionHeight; }; #endif |