Skip to content

Commit cb48948

Browse files
committedJan 22, 2015
Add python bindings for QgsMessageBar slots
1 parent 8235e4f commit cb48948

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
 

‎python/gui/qgsmessagebar.sip

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,34 @@ class QgsMessageBar: QFrame
6868
*/
6969
bool clearWidgets();
7070

71+
/**
72+
* Pushes a warning with default timeout to the message bar
73+
* @param message The message to be displayed
74+
* @note added in 2.8
75+
*/
76+
void pushSuccess( const QString& title, const QString& message );
77+
78+
/**
79+
* Pushes a warning with default timeout to the message bar
80+
* @param message The message to be displayed
81+
* @note added in 2.8
82+
*/
83+
void pushInfo( const QString& title, const QString& message );
84+
85+
/**
86+
* Pushes a warning with default timeout to the message bar
87+
* @param message The message to be displayed
88+
* @note added in 2.8
89+
*/
90+
void pushWarning( const QString& title, const QString& message );
91+
92+
/**
93+
* Pushes a warning with default timeout to the message bar
94+
* @param message The message to be displayed
95+
* @note added in 2.8
96+
*/
97+
void pushCritical( const QString& title, const QString& message );
98+
7199
protected:
72100
void mousePressEvent( QMouseEvent * e );
73101
};

0 commit comments

Comments
 (0)
Please sign in to comment.