UI: Fixes for Qt 6.1.3

This commit is contained in:
Nodir Temirkhodjaev 2023-01-10 19:41:32 +03:00
parent 3afa6e82d4
commit 99603dd38d
2 changed files with 7 additions and 1 deletions

View File

@ -50,8 +50,10 @@ void WindowManager::setUp()
setupMainWindow();
#if QT_VERSION > QT_VERSION_CHECK(6, 4, 0)
connect(QApplication::styleHints(), &QStyleHints::appearanceChanged, this,
&WindowManager::setupAppPalette);
#endif
connect(qApp, &QCoreApplication::aboutToQuit, this, &WindowManager::closeAll);
}

View File

@ -215,7 +215,11 @@ bool writeFileData(const QString &filePath, const QByteArray &data)
QDateTime fileModTime(const QString &filePath)
{
QFileInfo fi(filePath);
return fi.lastModified(QTimeZone::UTC);
return fi.lastModified(
#if QT_VERSION > QT_VERSION_CHECK(6, 4, 0)
QTimeZone::UTC
#endif
);
}
QString expandPath(const QString &path)