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:
parent
7ce9eb28ee
commit
dcb580ed46
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user