Переглянути джерело

ENH: Add TODO to ctkDoubleSlider

Julien Finet 15 роки тому
батько
коміт
93f9e91d19
1 змінених файлів з 5 додано та 0 видалено
  1. 5 0
      Libs/Widgets/ctkDoubleSlider.h

+ 5 - 0
Libs/Widgets/ctkDoubleSlider.h

@@ -33,6 +33,11 @@ class ctkDoubleSliderPrivate;
 
 /// ctkDoubleSlider is a QSlider that controls doubles instead of integers.
 /// ctkDoubleSlider internally aggregates a QSlider
+/// TODO: ctkDoubleSlider tries to represent a double value with integers. It's
+/// of course non-optimal and can lead to errors, it would be better if
+/// ctkDoubleSlider works like QDoubleSpinBox, where the value is a QVariant
+/// and the conversion between double and integer is only done to convert
+/// to/from screen coordinates.
 /// \sa ctkRangeSlider, ctkDoubleRangeSlider, ctkRangeWidget
 class CTK_WIDGETS_EXPORT ctkDoubleSlider : public QWidget
 {