17 #ifndef QGSMESSAGEBAR_H 18 #define QGSMESSAGEBAR_H 122 void pushSuccess(
const QString &title,
const QString &message );
130 void pushInfo(
const QString &title,
const QString &message );
138 void pushWarning(
const QString &title,
const QString &message );
146 void pushCritical(
const QString &title,
const QString &message );
149 void mousePressEvent( QMouseEvent *e )
override;
155 QList<QgsMessageBarItem *> mItems;
156 QMenu *mCloseMenu =
nullptr;
157 QToolButton *mCloseBtn =
nullptr;
158 QGridLayout *mLayout =
nullptr;
159 QLabel *mItemCount =
nullptr;
160 QAction *mActionCloseAll =
nullptr;
161 QTimer *mCountdownTimer =
nullptr;
162 QProgressBar *mCountProgress =
nullptr;
163 QString mCountStyleSheet;
167 void updateItemCount();
170 void updateCountdown();
171 void resetCountdown();
A bar for displaying non-blocking messages to the user.
MessageLevel
Level for messages This will be used both for message log and message bar in application.
void pushMessage(const QString &text, Qgis::MessageLevel level=Qgis::Info, int duration=5)
convenience method for pushing a message to the bar
QgsMessageBarItem * currentItem()