Fix height of color icon on color buttons in windows

This commit is contained in:
Nyall Dawson 2014-09-17 20:34:07 +10:00
parent a7a1bee5cc
commit 35e3eac73b

View File

@ -554,7 +554,7 @@ void QgsColorButtonV2::setButtonBackground( const QColor color )
this );
//make sure height of icon looks good under different platforms
#ifdef Q_WS_WIN
mIconSize = QSize( buttonSize.width() - 10, height() - 14 );
mIconSize = QSize( buttonSize.width() - 10, height() - 6 );
#else
mIconSize = QSize( buttonSize.width() - 10, height() - 12 );
#endif
@ -565,7 +565,7 @@ void QgsColorButtonV2::setButtonBackground( const QColor color )
{
//no menu
#ifdef Q_WS_WIN
currentIconSize = QSize( width() - 10, height() - 14 );
currentIconSize = QSize( width() - 10, height() - 6 );
#else
currentIconSize = QSize( width() - 10, height() - 12 );
#endif