Skip to content

Commit e32bb54

Browse files
mbernasocchinyalldawson
authored andcommitted
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 ); } (cherry-picked from bb4e6b8)
1 parent ddc76e2 commit e32bb54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/gui/qgsmessagebar.sip

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ class QgsMessageBar: QFrame
4848
static QgsMessageBarItem* createMessage( QWidget *widget, QWidget *parent = 0 ) /Factory/;
4949

5050
//! convenience method for pushing a message to the bar
51-
void pushMessage( const QString &text, MessageLevel level = INFO, int duration = 0 );
51+
void pushMessage( const QString &text, MessageLevel level = INFO, int duration = 5 );
5252
//! convenience method for pushing a message with title to the bar
53-
void pushMessage( const QString &title, const QString &text, MessageLevel level = INFO, int duration = 0 );
53+
void pushMessage( const QString &title, const QString &text, MessageLevel level = INFO, int duration = 5 );
5454

5555
QgsMessageBarItem *currentItem();
5656

0 commit comments

Comments
 (0)