mirror of
https://github.com/tnodir/fort
synced 2024-11-15 11:35:07 +00:00
UI: Fixes for Qt 6.1.3
This commit is contained in:
parent
3afa6e82d4
commit
99603dd38d
@ -50,8 +50,10 @@ void WindowManager::setUp()
|
|||||||
|
|
||||||
setupMainWindow();
|
setupMainWindow();
|
||||||
|
|
||||||
|
#if QT_VERSION > QT_VERSION_CHECK(6, 4, 0)
|
||||||
connect(QApplication::styleHints(), &QStyleHints::appearanceChanged, this,
|
connect(QApplication::styleHints(), &QStyleHints::appearanceChanged, this,
|
||||||
&WindowManager::setupAppPalette);
|
&WindowManager::setupAppPalette);
|
||||||
|
#endif
|
||||||
|
|
||||||
connect(qApp, &QCoreApplication::aboutToQuit, this, &WindowManager::closeAll);
|
connect(qApp, &QCoreApplication::aboutToQuit, this, &WindowManager::closeAll);
|
||||||
}
|
}
|
||||||
|
@ -215,7 +215,11 @@ bool writeFileData(const QString &filePath, const QByteArray &data)
|
|||||||
QDateTime fileModTime(const QString &filePath)
|
QDateTime fileModTime(const QString &filePath)
|
||||||
{
|
{
|
||||||
QFileInfo fi(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)
|
QString expandPath(const QString &path)
|
||||||
|
Loading…
Reference in New Issue
Block a user