Skip to content

Commit

Permalink
Default timeout for message bar items is 5 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 23, 2016
1 parent 3661f92 commit b07bae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/qgsmessagebar.h
Expand Up @@ -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; }

Expand Down

0 comments on commit b07bae6

Please sign in to comment.