Skip to content

Commit

Permalink
qgsmessagebar timeout is not respected in python
Browse files Browse the repository at this point in the history
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 ); }

(cherry-picked from bb4e6b8)
  • Loading branch information
mbernasocchi authored and nyalldawson committed Sep 14, 2016
1 parent 9dfd7b2 commit ed75016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/gui/qgsmessagebar.sip
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ class QgsMessageBar: QFrame
static QgsMessageBarItem* createMessage( QWidget *widget, QWidget *parent = 0 ) /Factory/; static QgsMessageBarItem* createMessage( QWidget *widget, QWidget *parent = 0 ) /Factory/;


//! convenience method for pushing a message to the bar //! 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 //! 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(); QgsMessageBarItem *currentItem();


Expand Down

0 comments on commit ed75016

Please sign in to comment.