Skip to content

Commit 410deb9

Browse files
committed
Set transparent background only for Close tool button, instead of also for tool tip
1 parent 5bb19c3 commit 410deb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgsmessagebar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ QgsMessageBar::QgsMessageBar( QWidget *parent )
4444

4545
mCloseBtn = new QToolButton( this );
4646
mCloseBtn->setToolTip( tr( "Close" ) );
47-
mCloseBtn->setStyleSheet( "background-color: rgba(255, 255, 255, 0);" );
47+
mCloseBtn->setStyleSheet( "QToolButton {background-color: rgba(255, 255, 255, 0);}" );
4848
mCloseBtn->setCursor( Qt::PointingHandCursor );
4949
mCloseBtn->setIcon( QgsApplication::getThemeIcon( "/mIconClose.png" ) );
5050
connect( mCloseBtn, SIGNAL( clicked() ), this, SLOT( popWidget() ) );

0 commit comments

Comments
 (0)