Skip to content
Permalink
Browse files
Doxymentation for QgsMessageBar
  • Loading branch information
m-kuhn committed Jun 2, 2015
1 parent f7489e0 commit afa389fcbe6b0d8a4992c2ced1a4e9593224721c
Showing with 10 additions and 7 deletions.
  1. +10 −7 src/gui/qgsmessagebar.h
@@ -55,9 +55,12 @@ class GUI_EXPORT QgsMessageBar: public QFrame
QgsMessageBar( QWidget *parent = 0 );
~QgsMessageBar();

/*! display a message item on the bar after hiding the currently visible one
* and putting it in a stack.
* @param item item to display
/**
* Display a message item on the bar after hiding the currently visible one
* and putting it in a stack.
* The message bar will take ownership of the item.
*
* @param item Item to display
*/
void pushItem( QgsMessageBarItem *item );

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

public slots:
/*! remove the currently displayed widget from the bar and
* display the next in the stack if any or hide the bar
* display the next in the stack if any or hide the bar.
* @return true if the widget was removed, false otherwise
*/
bool popWidget();
@@ -108,15 +111,15 @@ class GUI_EXPORT QgsMessageBar: public QFrame
bool clearWidgets();

/**
* Pushes a warning with default timeout to the message bar
* Pushes a success message with default timeout to the message bar
* @param title title string for message
* @param message The message to be displayed
* @note added in 2.8
*/
void pushSuccess( const QString& title, const QString& message );

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

/**
* Pushes a warning with default timeout to the message bar
* Pushes a critical warning with default timeout to the message bar
* @param title title string for message
* @param message The message to be displayed
* @note added in 2.8

0 comments on commit afa389f

Please sign in to comment.