add offset to notification window

This commit is contained in:
Yannik Schmidt
2021-11-06 14:17:49 +01:00
parent 7cd3a4e36e
commit 4ada79c9a5

View File

@@ -181,7 +181,7 @@ void MainWindow::showNotification(QString str){
auto popUp = new NotificationWidget(this);
popUp->setPopupText(str);
popUp->setGeometry(0, 0, popUp->width(), popUp->height());
popUp->setGeometry(200, 100, popUp->width(), popUp->height());
popUp->show();
auto *timer = new QTimer();
connect(timer, SIGNAL(timeout()), popUp, SLOT(fadeOut()));