Skip to content

Commit 9c7cf40

Browse files
authored
Merge pull request #6537 from slarosa/menu-indicator
fix size for menu indicator in data defined button
2 parents 1d62d10 + 6d36085 commit 9c7cf40

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/gui/qgspropertyoverridebutton.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ QgsPropertyOverrideButton::QgsPropertyOverrideButton( QWidget *parent,
4343

4444
// button width is 1.25 * icon size, height 1.1 * icon size. But we round to ensure even pixel sizes for equal margins
4545
setFixedSize( 2 * static_cast< int >( 1.25 * iconSize / 2.0 ), 2 * static_cast< int >( iconSize * 1.1 / 2.0 ) );
46-
setStyleSheet( QStringLiteral( "QToolButton{ background: none; border: 1px solid rgba(0, 0, 0, 0%);} QToolButton:focus { border: 1px solid palette(highlight); }" ) );
46+
QString ss;
47+
ss += QStringLiteral( "QToolButton{ background: none; border: 1px solid rgba(0, 0, 0, 0%); } QToolButton:focus { border: 1px solid palette(highlight); }" );
48+
#ifdef Q_OS_MACX
49+
ss += QStringLiteral( "QToolButton::menu-indicator{ width: 5px; }" );
50+
#endif
51+
setStyleSheet( ss );
4752

4853
setIconSize( QSize( iconSize, iconSize ) );
4954
setPopupMode( QToolButton::InstantPopup );

0 commit comments

Comments
 (0)