mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
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 ); }
This commit is contained in:
parent
648b779d6f
commit
bb4e6b8fb8
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user