Skip to content

Commit 8d1ce03

Browse files
committed
Update QgsMessageBar sip binding
1 parent 87af12f commit 8d1ce03

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

python/gui/qgsmessagebar.sip

+8
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ class QgsMessageBar: QFrame
3232
static QWidget* createMessage( const QString &title, const QString &text, const QIcon &icon, QWidget *parent = 0 ) /Factory/;
3333

3434
signals:
35+
//! emitted when a message widget is added to the bar
36+
void widgetAdded( QWidget *widget );
37+
3538
//! emitted when a widget was removed from the bar
3639
void widgetRemoved( QWidget *widget );
3740

@@ -41,4 +44,9 @@ class QgsMessageBar: QFrame
4144
* @return true if the widget was removed, false otherwise
4245
*/
4346
bool popWidget();
47+
48+
/*! remove all items from the bar's widget list
49+
* @return true if all items were removed, false otherwise
50+
*/
51+
bool clearWidgets();
4452
};

0 commit comments

Comments
 (0)