Make use of chrono literals from std library

This commit is contained in:
Chocobo1
2022-06-22 16:36:10 +08:00
parent 2a5dbe840c
commit 6de72ecc77
17 changed files with 57 additions and 32 deletions

View File

@@ -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