Hide the SVG label at creation

When required the appropriate pixmap (error/warn) will be set and the
label will be shown.
This commit is contained in:
Srivats P 2020-06-13 21:36:51 +05:30
parent 23d855f201
commit f2635acb09

View File

@ -53,6 +53,7 @@ LogsWindow::LogsWindow(LogsModel *model, QWidget *parent)
alert_ = new QLabel("ALERT!", this,
Qt::FramelessWindowHint|Qt::WindowStaysOnTopHint);
alert_->setScaledContents(true);
alert_->hide();
alertAnime_ = new QPropertyAnimation(alert_, "geometry", this);
alertAnime_->setDuration(2000);
alertAnime_->setEasingCurve(QEasingCurve::InOutExpo);