UI: Fix Qt version checks

This commit is contained in:
Nodir Temirkhodjaev 2023-01-17 13:03:30 +03:00
parent 86a18c90fb
commit 4cc54c4ff1
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ void WindowManager::setUp()
setupMainWindow();
#if QT_VERSION > QT_VERSION_CHECK(6, 4, 0)
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
connect(QApplication::styleHints(), &QStyleHints::appearanceChanged, this,
&WindowManager::setupAppPalette);
#endif

View File

@ -216,7 +216,7 @@ QDateTime fileModTime(const QString &filePath)
{
QFileInfo fi(filePath);
return fi.lastModified(
#if QT_VERSION > QT_VERSION_CHECK(6, 4, 0)
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
QTimeZone::UTC
#endif
);