From 7d809be79f1a8b075272dba91893bfe9086fa079 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 8 May 2018 23:38:57 +0300 Subject: Hide SnackBar initially & guard against access of an empty list --- include/ui/SnackBar.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/ui/SnackBar.h b/include/ui/SnackBar.h index 89a8adaa..eed59c87 100644 --- a/include/ui/SnackBar.h +++ b/include/ui/SnackBar.h @@ -2,8 +2,8 @@ #include #include -#include #include +#include #include "OverlayWidget.h" @@ -44,10 +44,10 @@ private: qreal bgOpacity_; qreal offset_; - QList messages_; + std::deque messages_; - QSharedPointer showTimer_; - QSharedPointer hideTimer_; + QTimer showTimer_; + QTimer hideTimer_; int duration_; int boxWidth_; -- cgit 1.5.1