From bbe6fbea2fb68aea33851daf50fd8fda7597a306 Mon Sep 17 00:00:00 2001 From: jfa Date: Tue, 18 Oct 2005 13:32:08 +0000 Subject: [PATCH] Fix for bug 9366: Incorrect size of 'Select color' buttons of the 'Setup Plot2d' dlg --- src/Plot2d/Plot2d_SetupPlot2dDlg.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() ) ); -- 2.39.2