Skip to content
Permalink
Browse files

qgsmessagebar timeout is not respected in python

the default timeout is not respected in python

gui/qgsmessagebar.sip:51:    void pushMessage( const QString &text, MessageLevel level = INFO, int duration = 0 );


https://qgis.org/api/qgsmessagebar_8h_source.html#l00090
void pushMessage( const QString &text, MessageLevel level = INFO, int duration = 5 ) { return pushMessage( QString::null, text, level, duration ); }
  • Loading branch information
mbernasocchi committed Sep 11, 2016
1 parent 648b779 commit bb4e6b8fb800b69d28407102a4f17494a4cd5ad9
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/gui/qgsmessagebar.sip
@@ -48,9 +48,9 @@ class QgsMessageBar: QFrame
static QgsMessageBarItem* createMessage( QWidget *widget, QWidget *parent = 0 ) /Factory/;

//! convenience method for pushing a message to the bar
void pushMessage( const QString &text, MessageLevel level = INFO, int duration = 0 );
void pushMessage( const QString &text, MessageLevel level = INFO, int duration = 5 );
//! 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();

0 comments on commit bb4e6b8

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