Skip to content
Permalink
Browse files

Fix height of color icon on color buttons in windows

  • Loading branch information
nyalldawson committed Sep 17, 2014
1 parent a7a1bee commit 35e3eac73bb4e9d87aa4879eb4c8f0e0a0f74eb2
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgscolorbuttonv2.cpp
@@ -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

0 comments on commit 35e3eac

Please sign in to comment.
You can’t perform that action at this time.