mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Fix height of color icon on color buttons in windows
This commit is contained in:
parent
a7a1bee5cc
commit
35e3eac73b
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user