From 8a9975b4ff6b7a8a79bef05230db28754500fa40 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Sun, 31 May 2020 16:26:54 +1000 Subject: [PATCH] Fix placement of message bar 'clear all' menu arrow on hidpi screens --- src/gui/qgsmessagebar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/qgsmessagebar.cpp b/src/gui/qgsmessagebar.cpp index a0524a0729fc..a4682bca62bd 100644 --- a/src/gui/qgsmessagebar.cpp +++ b/src/gui/qgsmessagebar.cpp @@ -81,7 +81,7 @@ QgsMessageBar::QgsMessageBar( QWidget *parent ) mCloseBtn = new QToolButton( this ); mCloseMenu->setObjectName( QStringLiteral( "mCloseMenu" ) ); mCloseBtn->setToolTip( tr( "Close" ) ); - mCloseBtn->setMinimumWidth( 40 ); + mCloseBtn->setMinimumWidth( QgsGuiUtils::scaleIconSize( 44 ) ); mCloseBtn->setStyleSheet( "QToolButton { border:none; background-color: rgba(0, 0, 0, 0); }" "QToolButton::menu-button { border:none; background-color: rgba(0, 0, 0, 0); }" );