From: jfa Date: Tue, 18 Oct 2005 13:32:08 +0000 (+0000) Subject: Fix for bug 9366: Incorrect size of 'Select color' buttons of the 'Setup Plot2d' dlg X-Git-Tag: V2_2_6~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bbe6fbea2fb68aea33851daf50fd8fda7597a306;p=modules%2Fkernel.git Fix for bug 9366: Incorrect size of 'Select color' buttons of the 'Setup Plot2d' dlg --- diff --git a/src/Plot2d/Plot2d_SetupPlot2dDlg.cxx b/src/Plot2d/Plot2d_SetupPlot2dDlg.cxx index 1a14428e4..5c3721a77 100644 --- a/src/Plot2d/Plot2d_SetupPlot2dDlg.cxx +++ b/src/Plot2d/Plot2d_SetupPlot2dDlg.cxx @@ -213,7 +213,7 @@ void Plot2d_SetupPlot2dDlg::getCurvesSource( int& horIndex, QValueList& ver { /* collecting horizontal and vertical axis items */ horIndex = -1; - int i, j; + int i; for ( i = 0; i < myItems.count(); i++ ) { if ( myItems.at( i )->isHorizontalOn() ) { horIndex = i; @@ -500,6 +500,7 @@ void Plot2d_ItemContainer::createWidgets( QWidget* parentWidget ) myMarkerCombo->setCurrentItem( 1 ); // CIRCLE by default myColorBtn = new QToolButton( parentWidget ); + myColorBtn->setMinimumWidth( 20 ); connect( myAutoCheck, SIGNAL( clicked() ), this, SLOT( onAutoChanged() ) ); connect( myColorBtn, SIGNAL( clicked() ), this, SLOT( onColorChanged() ) );