Skip to content
Permalink
Browse files

Fix for #8860, overlap of Close drop-down menu button on message bar

- Make tool button menu pop indicator a separate single-click button
  • Loading branch information
dakcarto committed Oct 16, 2013
1 parent 0218f07 commit 65200e3f165cd0c5cccaf0e29c7028a1f24fe6df
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsmessagebar.cpp
@@ -76,13 +76,13 @@ QgsMessageBar::QgsMessageBar( QWidget *parent )
mCloseBtn->setToolTip( tr( "Close" ) );
mCloseBtn->setMinimumWidth( 40 );
mCloseBtn->setStyleSheet(
"QToolButton { background-color: rgba(255, 255, 255, 0); } "
"QToolButton::menu-indicator { subcontrol-position: right bottom; subcontrol-origin: padding; bottom: 2px; }" );
"QToolButton { background-color: rgba(255, 255, 255, 0); } " );
mCloseBtn->setCursor( Qt::PointingHandCursor );
mCloseBtn->setIcon( QgsApplication::getThemeIcon( "/mIconClose.png" ) );
mCloseBtn->setIconSize( QSize( 18, 18 ) );
mCloseBtn->setSizePolicy( QSizePolicy::Maximum, QSizePolicy::Maximum );
mCloseBtn->setMenu( mCloseMenu );
mCloseBtn->setPopupMode( QToolButton::MenuButtonPopup );
connect( mCloseBtn, SIGNAL( clicked() ), this, SLOT( popWidget() ) );
mLayout->addWidget( mCloseBtn, 0, 3, 1, 1 );

0 comments on commit 65200e3

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