[PATCH 1/4] Don't round range for DoubleSpinBoxDelegate to int
Anton Lundin
glance at acc.umu.se
Sat Jul 12 05:24:23 PDT 2014
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 at acc.umu.se>
---
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 7679766..562111d 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
--
1.9.1
More information about the subsurface
mailing list