Skip to content

Commit 2910a8e

Browse files
committedAug 31, 2012
add tooltip to message bar's close button
1 parent 8be777b commit 2910a8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/app/qgsmessagebar.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ QgsMessageBar::QgsMessageBar( QWidget *parent )
4343
mLayout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding ), 0, 1, 1, 1 );
4444

4545
mCloseBtn = new QToolButton( this );
46-
mCloseBtn->setText( tr( "" ) );
46+
mCloseBtn->setToolTip( tr( "Close" ) );
4747
mCloseBtn->setStyleSheet( "background-color: rgba(255, 255, 255, 0);" );
4848
mCloseBtn->setCursor( Qt::PointingHandCursor );
4949
mCloseBtn->setIcon( QgsApplication::getThemeIcon( "/mIconClose.png" ) );
@@ -163,7 +163,7 @@ void QgsMessageBar::pushWidget( QWidget *widget, int level )
163163
{
164164
stylesheet = "QgsMessageBar { background-color: #ffc800; border: 1px solid #e0aa00; } QLabel { color: black; }";
165165
}
166-
else if ( level == 0 )
166+
else if ( level <= 0 )
167167
{
168168
stylesheet = "QgsMessageBar { background-color: #e7f5fe; border: 1px solid #b9cfe4; } QLabel { color: #2554a1; }";
169169
}

0 commit comments

Comments
 (0)
Please sign in to comment.