mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 13:10:19 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue