174 QList<QgsMessageBarItem *> items();
219 void pushSuccess(
const QString &title,
const QString &message );
229 void pushInfo(
const QString &title,
const QString &message );
239 void pushWarning(
const QString &title,
const QString &message );
249 void pushCritical(
const QString &title,
const QString &message );
252 void mousePressEvent( QMouseEvent *e )
override;
258 QList<QgsMessageBarItem *> mItems;
259 QMenu *mCloseMenu =
nullptr;
260 QToolButton *mCloseBtn =
nullptr;
261 QGridLayout *mLayout =
nullptr;
262 QLabel *mItemCount =
nullptr;
263 QAction *mActionCloseAll =
nullptr;
264 QTimer *mCountdownTimer =
nullptr;
265 QProgressBar *mCountProgress =
nullptr;
266 QString mCountStyleSheet;
269 static constexpr int MAX_ITEMS = 100;
271 void removeLowestPriorityOldestItem();
275 void updateItemCount();
278 void updateCountdown();
279 void resetCountdown();
281 friend class TestQgsMessageBar;