From 9feb56f5cf8b8a26ee72968d916a79b75ddd80fb Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Tue, 17 May 2016 23:55:07 -0400 Subject: [PATCH] Make color button swatches rectangular. --- glabels/ColorButton.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glabels/ColorButton.cpp b/glabels/ColorButton.cpp index 31cf60c..c4ecee2 100644 --- a/glabels/ColorButton.cpp +++ b/glabels/ColorButton.cpp @@ -28,7 +28,7 @@ namespace { - const int SWATCH_W = 24; + const int SWATCH_W = 64; const int SWATCH_H = 24; } @@ -45,6 +45,7 @@ void ColorButton::init( const QString& defaultLabel, const QColor& defaultColor, mColorNode = ColorNode( color ); setMinimumSize( QSize( 85, 34 ) ); + setIconSize( QSize(SWATCH_W, SWATCH_H) ); setIcon( QIcon( ColorSwatch( SWATCH_W, SWATCH_H, color ) ) ); setText( "" );