From 66971c96de0a4f9775d955c53996a2d41e777e6b Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 24 Oct 2005 08:14:56 +0000 Subject: [PATCH] Fix for bug 9366: incorrect size of the 'Select color' buttons --- src/Plot2d/Plot2d_SetupCurveDlg.cxx | 2 +- src/SPlot2d/SPlot2d_SetupPlot2dDlg.cxx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 ) ) ); -- 2.39.2