mirror of
https://github.com/FAUSheppy/speech-server-client-qt
synced 2025-12-06 00:41:35 +01:00
add offset to notification window
This commit is contained in:
@@ -181,7 +181,7 @@ void MainWindow::showNotification(QString str){
|
|||||||
|
|
||||||
auto popUp = new NotificationWidget(this);
|
auto popUp = new NotificationWidget(this);
|
||||||
popUp->setPopupText(str);
|
popUp->setPopupText(str);
|
||||||
popUp->setGeometry(0, 0, popUp->width(), popUp->height());
|
popUp->setGeometry(200, 100, popUp->width(), popUp->height());
|
||||||
popUp->show();
|
popUp->show();
|
||||||
auto *timer = new QTimer();
|
auto *timer = new QTimer();
|
||||||
connect(timer, SIGNAL(timeout()), popUp, SLOT(fadeOut()));
|
connect(timer, SIGNAL(timeout()), popUp, SLOT(fadeOut()));
|
||||||
|
|||||||
Reference in New Issue
Block a user