This commit is contained in:
Your Name
2024-05-09 21:23:23 -05:00
parent fbd09ad9bd
commit 7d9065c868
3 changed files with 18 additions and 6 deletions

View File

@@ -27,6 +27,19 @@ ReadyWindow::ReadyWindow(QWidget *parent) : QWidget(parent) {
setAttribute(Qt::WA_OpaquePaintEvent);
setStyleSheet("ReadyWindow { background-color: black; }");
timer = new QTimer(this);
timer->callOnTimeout(this, &ReadyWindow::refresh);
}
void ReadyWindow::showEvent(QShowEvent *event) {
refresh();
timer->start(5 * 1000);
}
void ReadyWindow::hideEvent(QHideEvent *event) {
timer->stop();
}
void ReadyWindow::paintEvent(QPaintEvent *event) {