174 QList<QgsMessageBarItem *> items();
218 void pushSuccess(
const QString &title,
const QString &message );
227 void pushInfo(
const QString &title,
const QString &message );
236 void pushWarning(
const QString &title,
const QString &message );
245 void pushCritical(
const QString &title,
const QString &message );
248 void mousePressEvent( QMouseEvent *e )
override;
254 QList<QgsMessageBarItem *> mItems;
255 QMenu *mCloseMenu =
nullptr;
256 QToolButton *mCloseBtn =
nullptr;
257 QGridLayout *mLayout =
nullptr;
258 QLabel *mItemCount =
nullptr;
259 QAction *mActionCloseAll =
nullptr;
260 QTimer *mCountdownTimer =
nullptr;
261 QProgressBar *mCountProgress =
nullptr;
262 QString mCountStyleSheet;
265 static constexpr int MAX_ITEMS = 100;
267 void removeLowestPriorityOldestItem();
271 void updateItemCount();
274 void updateCountdown();
275 void resetCountdown();
277 friend class TestQgsMessageBar;