summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-07-12 14:24:23 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-12 08:02:58 -0700
commitdcb580ed4647524dd91390bff95bc7c4793af1c6 (patch)
treeef50bbc3eacf237ac9ca17c6c27bf83beedb8114
parent7ce9eb28ee04d877a08357b2bae2c063b0afea9a (diff)
downloadsubsurface-dcb580ed4647524dd91390bff95bc7c4793af1c6.tar.gz
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 <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/modeldelegates.h4
1 files 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