Skip to content
Permalink
Browse files
Set fixed size for close icon in QgsMessageBar
  • Loading branch information
dakcarto committed Jan 13, 2013
1 parent ccbd3e2 commit e435762ecdc68d87523d34df32940f7af039dcc8
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/qgsmessagebar.cpp
@@ -80,6 +80,7 @@ QgsMessageBar::QgsMessageBar( QWidget *parent )
"QToolButton::menu-indicator { subcontrol-position: right bottom; subcontrol-origin: padding; bottom: 6px; }" );
mCloseBtn->setCursor( Qt::PointingHandCursor );
mCloseBtn->setIcon( QgsApplication::getThemeIcon( "/mIconClose.png" ) );
mCloseBtn->setIconSize( QSize( 18, 18 ) );
mCloseBtn->setSizePolicy( QSizePolicy::Maximum, QSizePolicy::Preferred );
mCloseBtn->setMenu( mCloseMenu );
connect( mCloseBtn, SIGNAL( clicked() ), this, SLOT( popWidget() ) );

0 comments on commit e435762

Please sign in to comment.