From dcb580ed4647524dd91390bff95bc7c4793af1c6 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Sat, 12 Jul 2014 14:24:23 +0200 Subject: [PATCH] Don't round range for DoubleSpinBoxDelegate to int This fixes simple copy-paste error that the DoubleSpinBoxDelegate range was stored as int, thus rounding min value from 0.2 to 0. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- qt-ui/modeldelegates.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt-ui/modeldelegates.h b/qt-ui/modeldelegates.h index 7679766e9..562111d9d 100644 --- a/qt-ui/modeldelegates.h +++ b/qt-ui/modeldelegates.h @@ -104,8 +104,8 @@ public: DoubleSpinBoxDelegate(qreal min, qreal max, QObject *parent = 0); virtual QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const; private: - int min; - int max; + qreal min; + qreal max; }; #endif // MODELDELEGATES_H