Skip to content

Commit

Permalink
add tooltip to message bar's close button
Browse files Browse the repository at this point in the history
  • Loading branch information
brushtyler committed Aug 31, 2012
1 parent 8be777b commit 2910a8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsmessagebar.cpp
Expand Up @@ -43,7 +43,7 @@ QgsMessageBar::QgsMessageBar( QWidget *parent )
mLayout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Expanding ), 0, 1, 1, 1 );

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

0 comments on commit 2910a8e

Please sign in to comment.