diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-07-12 14:24:24 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-12 08:03:16 -0700 |
commit | 6008d08557e8c883ff533d1d4205a66aba49ea95 (patch) | |
tree | 59cf35e8d677335dbefe649aabc452938a0df619 /qt-ui/modeldelegates.h | |
parent | dcb580ed4647524dd91390bff95bc7c4793af1c6 (diff) | |
download | subsurface-6008d08557e8c883ff533d1d4205a66aba49ea95.tar.gz |
Use doubles in DoubleSpinBoxDelegate
The previous code used qreals, but it feels clearer to use doubles when
the name of the class contains the word double. The performance loss of
using doubles instead of floats on arm is non-existent in this case.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/modeldelegates.h')
-rw-r--r-- | qt-ui/modeldelegates.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/modeldelegates.h b/qt-ui/modeldelegates.h index 562111d9d..bb948d32d 100644 --- a/qt-ui/modeldelegates.h +++ b/qt-ui/modeldelegates.h @@ -101,11 +101,11 @@ private: class DoubleSpinBoxDelegate : public QStyledItemDelegate { Q_OBJECT public: - DoubleSpinBoxDelegate(qreal min, qreal max, QObject *parent = 0); + DoubleSpinBoxDelegate(double min, double max, QObject *parent = 0); virtual QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const; private: - qreal min; - qreal max; + double min; + double max; }; #endif // MODELDELEGATES_H |