Skip to content

Commit afa389f

Browse files
committed
Doxymentation for QgsMessageBar
1 parent f7489e0 commit afa389f

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

src/gui/qgsmessagebar.h

+10-7
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,12 @@ class GUI_EXPORT QgsMessageBar: public QFrame
5555
QgsMessageBar( QWidget *parent = 0 );
5656
~QgsMessageBar();
5757

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
6164
*/
6265
void pushItem( QgsMessageBarItem *item );
6366

@@ -97,7 +100,7 @@ class GUI_EXPORT QgsMessageBar: public QFrame
97100

98101
public slots:
99102
/*! 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.
101104
* @return true if the widget was removed, false otherwise
102105
*/
103106
bool popWidget();
@@ -108,15 +111,15 @@ class GUI_EXPORT QgsMessageBar: public QFrame
108111
bool clearWidgets();
109112

110113
/**
111-
* Pushes a warning with default timeout to the message bar
114+
* Pushes a success message with default timeout to the message bar
112115
* @param title title string for message
113116
* @param message The message to be displayed
114117
* @note added in 2.8
115118
*/
116119
void pushSuccess( const QString& title, const QString& message );
117120

118121
/**
119-
* Pushes a warning with default timeout to the message bar
122+
* Pushes a information message with default timeout to the message bar
120123
* @param title title string for message
121124
* @param message The message to be displayed
122125
* @note added in 2.8
@@ -132,7 +135,7 @@ class GUI_EXPORT QgsMessageBar: public QFrame
132135
void pushWarning( const QString& title, const QString& message );
133136

134137
/**
135-
* Pushes a warning with default timeout to the message bar
138+
* Pushes a critical warning with default timeout to the message bar
136139
* @param title title string for message
137140
* @param message The message to be displayed
138141
* @note added in 2.8

0 commit comments

Comments
 (0)