From: vsr Date: Thu, 11 Oct 2007 12:36:29 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: snapshot_171207~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7a04da0b3c77b119d63c0bfb1807aaa34a252802;p=modules%2Fgeom.git *** empty log message *** --- diff --git a/src/DlgRef/DlgRef_Skeleton_QTD.ui b/src/DlgRef/DlgRef_Skeleton_QTD.ui index 65e21f53a..28e9f2d21 100644 --- a/src/DlgRef/DlgRef_Skeleton_QTD.ui +++ b/src/DlgRef/DlgRef_Skeleton_QTD.ui @@ -6,7 +6,7 @@ 0 0 380 - 182 + 170 @@ -30,6 +30,60 @@ 6 + + + + + + + + 5 + 0 + 0 + 0 + + + + + + + + 9 + + + 6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -125,72 +179,6 @@ - - - - - 5 - 0 - 0 - 0 - - - - - - - - 9 - - - 6 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - 7 - 0 - 0 - - - - - - - diff --git a/src/DlgRef/GEOM_DlgRef.cxx b/src/DlgRef/GEOM_DlgRef.cxx index 715983fe6..4fd80c492 100644 --- a/src/DlgRef/GEOM_DlgRef.cxx +++ b/src/DlgRef/GEOM_DlgRef.cxx @@ -537,3 +537,12 @@ DlgRef_Skeleton::DlgRef_Skeleton( QWidget* parent, bool modal, Qt::WindowFlags f DlgRef_Skeleton::~DlgRef_Skeleton() { } + +void DlgRef_Skeleton::initSpinBox( QDoubleSpinBox* spinBox, + double min, double max, + double step, int decimals ) +{ + spinBox->setRange( min, max ); + spinBox->setSingleStep( step ); + spinBox->setDecimals( decimals ); +} diff --git a/src/DlgRef/GEOM_DlgRef.h b/src/DlgRef/GEOM_DlgRef.h index 8fa216eee..1fb97f43f 100644 --- a/src/DlgRef/GEOM_DlgRef.h +++ b/src/DlgRef/GEOM_DlgRef.h @@ -581,6 +581,8 @@ public: DlgRef_Skeleton( QWidget* = 0, Qt::WindowFlags = 0 ); DlgRef_Skeleton( QWidget* = 0, bool modal = false, Qt::WindowFlags = 0 ); ~DlgRef_Skeleton(); + + void initSpinBox( QDoubleSpinBox*, double, double, double = 0.1, int = 3 ); }; #endif // GEOM_DLGREF_H