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>
This commit is contained in:
Anton Lundin 2014-07-12 14:24:23 +02:00 committed by Dirk Hohndel
parent 7ce9eb28ee
commit dcb580ed46

View file

@ -104,8 +104,8 @@ public:
DoubleSpinBoxDelegate(qreal min, qreal max, QObject *parent = 0); DoubleSpinBoxDelegate(qreal min, qreal max, QObject *parent = 0);
virtual QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const; virtual QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
private: private:
int min; qreal min;
int max; qreal max;
}; };
#endif // MODELDELEGATES_H #endif // MODELDELEGATES_H