mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Fix splash screen staying on top of all windows. Closes #1391.
This commit is contained in:
@@ -365,7 +365,7 @@ void showSplashScreen()
|
|||||||
painter.setPen(QPen(Qt::white));
|
painter.setPen(QPen(Qt::white));
|
||||||
painter.setFont(QFont("Arial", 22, QFont::Black));
|
painter.setFont(QFont("Arial", 22, QFont::Black));
|
||||||
painter.drawText(224 - painter.fontMetrics().width(version), 270, version);
|
painter.drawText(224 - painter.fontMetrics().width(version), 270, version);
|
||||||
QSplashScreen *splash = new QSplashScreen(splash_img, Qt::WindowStaysOnTopHint);
|
QSplashScreen *splash = new QSplashScreen(splash_img);
|
||||||
QTimer::singleShot(1500, splash, SLOT(deleteLater()));
|
QTimer::singleShot(1500, splash, SLOT(deleteLater()));
|
||||||
splash->show();
|
splash->show();
|
||||||
qApp->processEvents();
|
qApp->processEvents();
|
||||||
|
|||||||
Reference in New Issue
Block a user