mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
Make use of chrono literals from std library
This commit is contained in:
parent
2a5dbe840c
commit
6de72ecc77
17 changed files with 57 additions and 32 deletions
|
@ -29,6 +29,7 @@
|
|||
|
||||
#include <QtGlobal>
|
||||
|
||||
#include <chrono>
|
||||
#include <cstdlib>
|
||||
#include <memory>
|
||||
|
||||
|
@ -79,6 +80,8 @@ Q_IMPORT_PLUGIN(QICOPlugin)
|
|||
#include "gui/utils.h"
|
||||
#endif
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
void displayVersion();
|
||||
bool userAgreesWithLegalNotice();
|
||||
void displayBadArgMessage(const QString &message);
|
||||
|
@ -284,7 +287,7 @@ void showSplashScreen()
|
|||
painter.drawText(224 - painter.fontMetrics().horizontalAdvance(version), 270, version);
|
||||
QSplashScreen *splash = new QSplashScreen(splashImg);
|
||||
splash->show();
|
||||
QTimer::singleShot(1500, splash, &QObject::deleteLater);
|
||||
QTimer::singleShot(1500ms, splash, &QObject::deleteLater);
|
||||
qApp->processEvents();
|
||||
}
|
||||
#endif // DISABLE_GUI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue