diff --git a/Polyhedron/demo/Polyhedron/CGAL_double_edit.cpp b/Polyhedron/demo/Polyhedron/CGAL_double_edit.cpp index a631b7e01c5..0acf1bffb6c 100644 --- a/Polyhedron/demo/Polyhedron/CGAL_double_edit.cpp +++ b/Polyhedron/demo/Polyhedron/CGAL_double_edit.cpp @@ -61,5 +61,20 @@ public: { this->validator->setRange(min, max); } + + double DoubleEdit::getValue() + { + return this->value(); + } + + double DoubleEdit::getMinimum() + { + return this->validator->bottom(); + } + + double DoubleEdit::getMaximum() + { + return this->validator->top(); + } #include "CGAL_double_edit.moc" diff --git a/Polyhedron/demo/Polyhedron/CGAL_double_edit.h b/Polyhedron/demo/Polyhedron/CGAL_double_edit.h index 0cacb15ea49..1b542d2bb22 100644 --- a/Polyhedron/demo/Polyhedron/CGAL_double_edit.h +++ b/Polyhedron/demo/Polyhedron/CGAL_double_edit.h @@ -13,7 +13,9 @@ class DoubleValidator; class SCENE_EXPORT DoubleEdit : public QLineEdit { Q_OBJECT - + Q_PROPERTY(double value READ getValue WRITE setValue) + Q_PROPERTY(double minimum READ getMinimum WRITE setMinimum) + Q_PROPERTY(double maximum READ getMaximum WRITE setMaximum) public: DoubleEdit(QWidget* parent = nullptr); ~DoubleEdit(); @@ -22,6 +24,9 @@ public: void setMinimum(double d); void setMaximum(double d); void setRange(double min, double max); + double getValue(); + double getMinimum(); + double getMaximum(); private: DoubleValidator* validator; };