]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix of IPAL19560 (Qt4 porting: Colors/Size - problems in "Preferences - Set Color... V5_0_0 V5_0_0rc1
authorakl <akl@opencascade.com>
Fri, 25 Apr 2008 11:31:43 +0000 (11:31 +0000)
committerakl <akl@opencascade.com>
Fri, 25 Apr 2008 11:31:43 +0000 (11:31 +0000)
src/SMESHGUI/SMESHGUI_Preferences_ColorDlg.cxx
src/SMESHGUI/SMESHGUI_Preferences_ColorDlg.h

index 63a5fc1dd7d74aa2ea422eaedec6c1d22c028510..3263368db4bf518089ce3362cf663c7404574ebf 100644 (file)
@@ -32,6 +32,7 @@
 // SALOME GUI includes
 #include <SUIT_Desktop.h>
 #include <QtxColorButton.h>
+#include <QtxIntSpinBox.h>
 
 // Qt includes
 #include <QGroupBox>
@@ -88,7 +89,7 @@ SMESHGUI_Preferences_ColorDlg::SMESHGUI_Preferences_ColorDlg( SMESHGUI* theModul
   SpinBox_Width->setButtonSymbols( QSpinBox::PlusMinus );
 
   QLabel* TextLabel_ShrinkCoeff = new QLabel( tr( "Shrink coef." ), ButtonGroup1 );
-  SpinBox_Shrink = new QSpinBox( ButtonGroup1 );
+  SpinBox_Shrink = new QtxIntSpinBox( ButtonGroup1 );
   SpinBox_Shrink->setRange( 20, 100 );
   SpinBox_Shrink->setSingleStep( 1 );
   SpinBox_Shrink->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ) );
@@ -96,14 +97,14 @@ SMESHGUI_Preferences_ColorDlg::SMESHGUI_Preferences_ColorDlg( SMESHGUI* theModul
 
   ButtonGroup1Layout->addWidget( TextLabel_Fill,        0, 0 );
   ButtonGroup1Layout->addWidget( btnFillColor,          0, 1 );
-  ButtonGroup1Layout->addWidget( TextLabel_BackFace,    1, 0 );
-  ButtonGroup1Layout->addWidget( btnBackFaceColor,      1, 1 );
-  ButtonGroup1Layout->addWidget( TextLabel_Outine,      2, 0 );
-  ButtonGroup1Layout->addWidget( btnOutlineColor,       2, 1 );
-  ButtonGroup1Layout->addWidget( TextLabel_Width,       0, 2 );
-  ButtonGroup1Layout->addWidget( SpinBox_Width,         0, 3 );
-  ButtonGroup1Layout->addWidget( TextLabel_ShrinkCoeff, 1, 2 );
-  ButtonGroup1Layout->addWidget( SpinBox_Shrink,        1, 3 );
+  ButtonGroup1Layout->addWidget( TextLabel_BackFace,    0, 2 );
+  ButtonGroup1Layout->addWidget( btnBackFaceColor,      0, 3 );
+  ButtonGroup1Layout->addWidget( TextLabel_Outine,      1, 0 );
+  ButtonGroup1Layout->addWidget( btnOutlineColor,       1, 1 );
+  ButtonGroup1Layout->addWidget( TextLabel_Width,       1, 2 );
+  ButtonGroup1Layout->addWidget( SpinBox_Width,         1, 3 );
+  ButtonGroup1Layout->addWidget( TextLabel_ShrinkCoeff, 2, 0 );
+  ButtonGroup1Layout->addWidget( SpinBox_Shrink,        2, 1, 1, 3 );
 
   // -------------------------------
   QGroupBox* ButtonGroup2 = new QGroupBox( tr( "Nodes" ), this );
index d37092a4de6e4b1b474b933122292e4c58352bdb..7cba880498dda2b7ffb284c5e066e26a0a24266a 100644 (file)
@@ -34,6 +34,7 @@
 
 class QSpinBox;
 class SMESHGUI;
+class QtxIntSpinBox;
 class QtxColorButton;
 
 class SMESHGUI_EXPORT SMESHGUI_Preferences_ColorDlg : public QDialog
@@ -65,7 +66,7 @@ private:
   QtxColorButton*       btnBackFaceColor;
   QtxColorButton*       btnOutlineColor;
   QSpinBox*             SpinBox_Width;
-  QSpinBox*             SpinBox_Shrink;
+  QtxIntSpinBox*        SpinBox_Shrink;
   QtxColorButton*       btnNodeColor;
   QSpinBox*             SpinBox_Nodes_Size;
 };