@@ -55,9 +55,12 @@ class GUI_EXPORT QgsMessageBar: public QFrame
55
55
QgsMessageBar ( QWidget *parent = 0 );
56
56
~QgsMessageBar ();
57
57
58
- /* ! display a message item on the bar after hiding the currently visible one
59
- * and putting it in a stack.
60
- * @param item item to display
58
+ /* *
59
+ * Display a message item on the bar after hiding the currently visible one
60
+ * and putting it in a stack.
61
+ * The message bar will take ownership of the item.
62
+ *
63
+ * @param item Item to display
61
64
*/
62
65
void pushItem ( QgsMessageBarItem *item );
63
66
@@ -97,7 +100,7 @@ class GUI_EXPORT QgsMessageBar: public QFrame
97
100
98
101
public slots:
99
102
/* ! remove the currently displayed widget from the bar and
100
- * display the next in the stack if any or hide the bar
103
+ * display the next in the stack if any or hide the bar.
101
104
* @return true if the widget was removed, false otherwise
102
105
*/
103
106
bool popWidget ();
@@ -108,15 +111,15 @@ class GUI_EXPORT QgsMessageBar: public QFrame
108
111
bool clearWidgets ();
109
112
110
113
/* *
111
- * Pushes a warning with default timeout to the message bar
114
+ * Pushes a success message with default timeout to the message bar
112
115
* @param title title string for message
113
116
* @param message The message to be displayed
114
117
* @note added in 2.8
115
118
*/
116
119
void pushSuccess ( const QString& title, const QString& message );
117
120
118
121
/* *
119
- * Pushes a warning with default timeout to the message bar
122
+ * Pushes a information message with default timeout to the message bar
120
123
* @param title title string for message
121
124
* @param message The message to be displayed
122
125
* @note added in 2.8
@@ -132,7 +135,7 @@ class GUI_EXPORT QgsMessageBar: public QFrame
132
135
void pushWarning ( const QString& title, const QString& message );
133
136
134
137
/* *
135
- * Pushes a warning with default timeout to the message bar
138
+ * Pushes a critical warning with default timeout to the message bar
136
139
* @param title title string for message
137
140
* @param message The message to be displayed
138
141
* @note added in 2.8
0 commit comments