mirror of
https://github.com/tnodir/fort
synced 2024-11-15 08:56:22 +00:00
UI: Fix Qt version checks
This commit is contained in:
parent
86a18c90fb
commit
4cc54c4ff1
@ -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
|
||||
|
@ -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
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user