Salome HOME
Fix for bug 9366: incorrect size of the 'Select color' buttons
authorjfa <jfa@opencascade.com>
Mon, 24 Oct 2005 09:11:09 +0000 (09:11 +0000)
committerjfa <jfa@opencascade.com>
Mon, 24 Oct 2005 09:11:09 +0000 (09:11 +0000)
src/SMESHGUI/SMESHGUI_Preferences_ScalarBarDlg.cxx

index c8da7c26f4463a533f0ffa2fac0c052cecc7d433..d9ca05180d3eda82a3fa1131ff4c2798682cd325 100644 (file)
@@ -174,6 +174,7 @@ SMESHGUI_Preferences_ScalarBarDlg::SMESHGUI_Preferences_ScalarBarDlg( SMESHGUI*
   myFontGrpLayout->setSpacing( SPACING_SIZE ); myFontGrpLayout->setMargin( MARGIN_SIZE );
 
   myTitleColorBtn = new QToolButton( myFontGrp, "myTitleColorBtn" );
   myFontGrpLayout->setSpacing( SPACING_SIZE ); myFontGrpLayout->setMargin( MARGIN_SIZE );
 
   myTitleColorBtn = new QToolButton( myFontGrp, "myTitleColorBtn" );
+  myTitleColorBtn->setMinimumWidth( 20 );
 
   myTitleFontCombo = new QComboBox( false, myFontGrp, "myTitleFontCombo" );
   myTitleFontCombo->setMinimumWidth( MINIMUM_WIDTH );
 
   myTitleFontCombo = new QComboBox( false, myFontGrp, "myTitleFontCombo" );
   myTitleFontCombo->setMinimumWidth( MINIMUM_WIDTH );
@@ -187,6 +188,7 @@ SMESHGUI_Preferences_ScalarBarDlg::SMESHGUI_Preferences_ScalarBarDlg( SMESHGUI*
   myTitleShadowCheck = new QCheckBox( tr( "SMESH_FONT_SHADOW" ), myFontGrp, "myTitleShadowCheck" );
 
   myLabelsColorBtn = new QToolButton( myFontGrp, "myLabelsColorBtn" );
   myTitleShadowCheck = new QCheckBox( tr( "SMESH_FONT_SHADOW" ), myFontGrp, "myTitleShadowCheck" );
 
   myLabelsColorBtn = new QToolButton( myFontGrp, "myLabelsColorBtn" );
+  myLabelsColorBtn->setMinimumWidth( 20 );
 
   myLabelsFontCombo = new QComboBox( false, myFontGrp, "myLabelsFontCombo" );
   myLabelsFontCombo->setMinimumWidth( MINIMUM_WIDTH );
 
   myLabelsFontCombo = new QComboBox( false, myFontGrp, "myLabelsFontCombo" );
   myLabelsFontCombo->setMinimumWidth( MINIMUM_WIDTH );