Disable custom window for Qt < 5.12

This commit is contained in:
Alex Spataru 2022-01-02 12:57:26 -05:00
parent 36b965bcd6
commit 888f8d3d8f

View File

@ -41,7 +41,12 @@ Misc::ThemeManager::ThemeManager()
{ {
populateThemes(); populateThemes();
loadTheme(m_settings.value("themeId", 0).toInt()); loadTheme(m_settings.value("themeId", 0).toInt());
#if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
setCustomWindowDecorations(m_settings.value("customWindows", false).toBool());
#else
setCustomWindowDecorations(m_settings.value("customWindows", true).toBool()); setCustomWindowDecorations(m_settings.value("customWindows", true).toBool());
#endif
} }
/** /**