Skip to content

Commit

Permalink
Fix height of color icon on color buttons in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 17, 2014
1 parent a7a1bee commit 35e3eac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgscolorbuttonv2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 35e3eac

Please sign in to comment.