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