mirror of
https://github.com/Serial-Studio/Serial-Studio.git
synced 2025-01-15 05:22:53 +08:00
Disable custom window for Qt < 5.12
This commit is contained in:
parent
36b965bcd6
commit
888f8d3d8f
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user