Skip to content
Permalink
Browse files

Default timeout for message bar items is 5 seconds

  • Loading branch information
m-kuhn committed Jun 23, 2016
1 parent 3661f92 commit b07bae60a9e2736ca14aa2f9fcf978fdaf16015a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/qgsmessagebar.h
@@ -87,9 +87,9 @@ class GUI_EXPORT QgsMessageBar: public QFrame
static QgsMessageBarItem* createMessage( QWidget *widget, QWidget *parent = nullptr );

//! convenience method for pushing a message to the bar
void pushMessage( const QString &text, MessageLevel level = INFO, int duration = 0 ) { return pushMessage( QString::null, text, level, duration ); }
void pushMessage( const QString &text, MessageLevel level = INFO, int duration = 5 ) { return pushMessage( QString::null, text, level, duration ); }
//! convenience method for pushing a message with title to the bar
void pushMessage( const QString &title, const QString &text, MessageLevel level = INFO, int duration = 0 );
void pushMessage( const QString &title, const QString &text, MessageLevel level = INFO, int duration = 5 );

QgsMessageBarItem *currentItem() { return mCurrentItem; }

0 comments on commit b07bae6

Please sign in to comment.
You can’t perform that action at this time.