Skip to content

Commit

Permalink
Fix for #8860, overlap of Close drop-down menu button on message bar
Browse files Browse the repository at this point in the history
- Make tool button menu pop indicator a separate single-click button
  • Loading branch information
dakcarto committed Oct 16, 2013
1 parent 0218f07 commit 65200e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsmessagebar.cpp
Expand Up @@ -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 );

Expand Down

0 comments on commit 65200e3

Please sign in to comment.