From: jfa Date: Mon, 24 Oct 2005 08:14:56 +0000 (+0000) Subject: Fix for bug 9366: incorrect size of the 'Select color' buttons X-Git-Tag: BR-D5-38-2003_D2005-27-10~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=66971c96de0a4f9775d955c53996a2d41e777e6b;hp=06682d8f8c25071f18e1d0f3e54e9e366f30bde1;p=modules%2Fgui.git Fix for bug 9366: incorrect size of the 'Select color' buttons --- diff --git a/src/Plot2d/Plot2d_SetupCurveDlg.cxx b/src/Plot2d/Plot2d_SetupCurveDlg.cxx index 1f6c3729d..4f73cff03 100644 --- a/src/Plot2d/Plot2d_SetupCurveDlg.cxx +++ b/src/Plot2d/Plot2d_SetupCurveDlg.cxx @@ -85,7 +85,7 @@ Plot2d_SetupCurveDlg::Plot2d_SetupCurveDlg( QWidget* parent ) QLabel* aColorLab = new QLabel( tr( "CURVE_COLOR_LAB" ), TopGroup ); myColorBtn = new QToolButton( TopGroup ); - myColorBtn->setMinimumWidth(25); + myColorBtn->setMinimumSize(25, 25); TopGroupLayout->addWidget( aLineTypeLab, 0, 0 ); TopGroupLayout->addMultiCellWidget( myLineCombo, 0, 0, 1, 2 ); diff --git a/src/SPlot2d/SPlot2d_SetupPlot2dDlg.cxx b/src/SPlot2d/SPlot2d_SetupPlot2dDlg.cxx index d53a8f9f9..128a8b2dd 100644 --- a/src/SPlot2d/SPlot2d_SetupPlot2dDlg.cxx +++ b/src/SPlot2d/SPlot2d_SetupPlot2dDlg.cxx @@ -508,7 +508,8 @@ void SPlot2d_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() ) ); connect( myHBtn, SIGNAL( toggled( bool ) ), this, SLOT( onHVToggled( bool ) ) );