Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
with
2 additions
and
2 deletions.
-
+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 ); |
|
|
|
|
|