QGIS API Documentation
3.4.15-Madeira (e83d02e274)
|
#include <qgsmessagebaritem.h>
Public Slots | |
void | dismiss () |
Dismisses the item, removing it from the message bar and deleting it. More... | |
Signals | |
void | styleChanged (const QString &styleSheet) |
emitted when the message level has changed More... | |
Public Member Functions | |
QgsMessageBarItem (const QString &text, Qgis::MessageLevel level=Qgis::Info, int duration=0, QWidget *parent=nullptr) | |
make out a widget containing a message to be displayed on the bar More... | |
QgsMessageBarItem (const QString &title, const QString &text, Qgis::MessageLevel level=Qgis::Info, int duration=0, QWidget *parent=nullptr) | |
make out a widget containing title and message to be displayed on the bar More... | |
QgsMessageBarItem (const QString &title, const QString &text, QWidget *widget, Qgis::MessageLevel level=Qgis::Info, int duration=0, QWidget *parent=nullptr) | |
make out a widget containing title, message and widget to be displayed on the bar More... | |
QgsMessageBarItem (QWidget *widget, Qgis::MessageLevel level=Qgis::Info, int duration=0, QWidget *parent=nullptr) | |
make out a widget containing a widget to be displayed on the bar More... | |
int | duration () const |
returns the duration in second of the message More... | |
QString | getStyleSheet () |
returns the styleSheet More... | |
QIcon | icon () const |
Returns the icon for the message. More... | |
Qgis::MessageLevel | level () const |
Returns the message level for the message. More... | |
QgsMessageBarItem * | setDuration (int duration) |
QgsMessageBarItem * | setIcon (const QIcon &icon) |
QgsMessageBarItem * | setLevel (Qgis::MessageLevel level) |
QgsMessageBarItem * | setText (const QString &text) |
QgsMessageBarItem * | setTitle (const QString &title) |
QgsMessageBarItem * | setWidget (QWidget *widget) |
QString | text () const |
Returns the text for the message. More... | |
QString | title () const |
Returns the title for the message. More... | |
QWidget * | widget () const |
Returns the widget for the message. More... | |
Friends | |
class | QgsMessageBar |
Definition at line 36 of file qgsmessagebaritem.h.
QgsMessageBarItem::QgsMessageBarItem | ( | const QString & | text, |
Qgis::MessageLevel | level = Qgis::Info , |
||
int | duration = 0 , |
||
QWidget * | parent = nullptr |
||
) |
make out a widget containing a message to be displayed on the bar
Definition at line 29 of file qgsmessagebaritem.cpp.
QgsMessageBarItem::QgsMessageBarItem | ( | const QString & | title, |
const QString & | text, | ||
Qgis::MessageLevel | level = Qgis::Info , |
||
int | duration = 0 , |
||
QWidget * | parent = nullptr |
||
) |
make out a widget containing title and message to be displayed on the bar
Definition at line 38 of file qgsmessagebaritem.cpp.
QgsMessageBarItem::QgsMessageBarItem | ( | const QString & | title, |
const QString & | text, | ||
QWidget * | widget, | ||
Qgis::MessageLevel | level = Qgis::Info , |
||
int | duration = 0 , |
||
QWidget * | parent = nullptr |
||
) |
make out a widget containing title, message and widget to be displayed on the bar
Definition at line 48 of file qgsmessagebaritem.cpp.
QgsMessageBarItem::QgsMessageBarItem | ( | QWidget * | widget, |
Qgis::MessageLevel | level = Qgis::Info , |
||
int | duration = 0 , |
||
QWidget * | parent = nullptr |
||
) |
make out a widget containing a widget to be displayed on the bar
Definition at line 61 of file qgsmessagebaritem.cpp.
|
slot |
Dismisses the item, removing it from the message bar and deleting it.
Calling this on items which have not been added to a message bar has no effect.
Definition at line 273 of file qgsmessagebaritem.cpp.
|
inline |
returns the duration in second of the message
Definition at line 90 of file qgsmessagebaritem.h.
|
inline |
returns the styleSheet
Definition at line 93 of file qgsmessagebaritem.h.
QIcon QgsMessageBarItem::icon | ( | ) | const |
Returns the icon for the message.
Definition at line 261 of file qgsmessagebaritem.cpp.
Qgis::MessageLevel QgsMessageBarItem::level | ( | ) | const |
Returns the message level for the message.
Definition at line 229 of file qgsmessagebaritem.cpp.
QgsMessageBarItem * QgsMessageBarItem::setDuration | ( | int | duration | ) |
Definition at line 267 of file qgsmessagebaritem.cpp.
QgsMessageBarItem * QgsMessageBarItem::setIcon | ( | const QIcon & | icon | ) |
Definition at line 255 of file qgsmessagebaritem.cpp.
QgsMessageBarItem * QgsMessageBarItem::setLevel | ( | Qgis::MessageLevel | level | ) |
Definition at line 221 of file qgsmessagebaritem.cpp.
QgsMessageBarItem * QgsMessageBarItem::setText | ( | const QString & | text | ) |
Definition at line 197 of file qgsmessagebaritem.cpp.
QgsMessageBarItem * QgsMessageBarItem::setTitle | ( | const QString & | title | ) |
Definition at line 209 of file qgsmessagebaritem.cpp.
QgsMessageBarItem * QgsMessageBarItem::setWidget | ( | QWidget * | widget | ) |
Definition at line 234 of file qgsmessagebaritem.cpp.
|
signal |
emitted when the message level has changed
QString QgsMessageBarItem::text | ( | ) | const |
Returns the text for the message.
Definition at line 204 of file qgsmessagebaritem.cpp.
QString QgsMessageBarItem::title | ( | ) | const |
Returns the title for the message.
Definition at line 216 of file qgsmessagebaritem.cpp.
QWidget * QgsMessageBarItem::widget | ( | ) | const |
Returns the widget for the message.
Definition at line 250 of file qgsmessagebaritem.cpp.
|
friend |
Definition at line 129 of file qgsmessagebaritem.h.