From 7a04da0b3c77b119d63c0bfb1807aaa34a252802 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 11 Oct 2007 12:36:29 +0000 Subject: [PATCH] *** empty log message *** --- src/DlgRef/DlgRef_Skeleton_QTD.ui | 122 ++++++++++++++---------------- src/DlgRef/GEOM_DlgRef.cxx | 9 +++ src/DlgRef/GEOM_DlgRef.h | 2 + 3 files changed, 66 insertions(+), 67 deletions(-) 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 -- 2.39.2