173 QList<QgsMessageBarItem *> items();
217 void pushSuccess(
const QString &title,
const QString &message );
226 void pushInfo(
const QString &title,
const QString &message );
235 void pushWarning(
const QString &title,
const QString &message );
244 void pushCritical(
const QString &title,
const QString &message );
247 void mousePressEvent( QMouseEvent *e )
override;
253 QList<QgsMessageBarItem *> mItems;
254 QMenu *mCloseMenu =
nullptr;
255 QToolButton *mCloseBtn =
nullptr;
256 QGridLayout *mLayout =
nullptr;
257 QLabel *mItemCount =
nullptr;
258 QAction *mActionCloseAll =
nullptr;
259 QTimer *mCountdownTimer =
nullptr;
260 QProgressBar *mCountProgress =
nullptr;
261 QString mCountStyleSheet;
264 static constexpr int MAX_ITEMS = 100;
266 void removeLowestPriorityOldestItem();
270 void updateItemCount();
273 void updateCountdown();
274 void resetCountdown();
276 friend class TestQgsMessageBar;