]> git.lyx.org Git - features.git/blobdiff - src/support/ConsoleApplicationPrivate.h
Fix Qt6 deprecation warning (QString::fromUcs4(uint))
[features.git] / src / support / ConsoleApplicationPrivate.h
index 097a02d8a6be7821be3bf0e87b5650f26ca811cc..347f9ad62f06acc33674c7267f9aac0bae94fb53 100644 (file)
@@ -42,7 +42,7 @@ public:
                setApplicationName(toqstr(app));
 
 #if (QT_VERSION >= QT_VERSION_CHECK(5, 10, 0))
-               QRandomGenerator(QDateTime::currentDateTime().toTime_t());
+               QRandomGenerator(QDateTime::currentDateTime().toSecsSinceEpoch());
 #else
                qsrand(QDateTime::currentDateTime().toTime_t());
 #endif