1918 |
// Check whether restart is needed or whether |
// Check whether restart is needed or whether |
1919 |
// custom options maybe set up immediately... |
// custom options maybe set up immediately... |
1920 |
if (m_pOptions->sCustomStyleTheme != sOldCustomStyleTheme) { |
if (m_pOptions->sCustomStyleTheme != sOldCustomStyleTheme) { |
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) |
|
|
++iNeedRestart; |
|
|
#else |
|
1921 |
if (m_pOptions->sCustomStyleTheme.isEmpty()) { |
if (m_pOptions->sCustomStyleTheme.isEmpty()) { |
1922 |
++iNeedRestart; |
++iNeedRestart; |
1923 |
} else { |
} else { |
1924 |
QApplication::setStyle( |
QApplication::setStyle( |
1925 |
QStyleFactory::create(m_pOptions->sCustomStyleTheme)); |
QStyleFactory::create(m_pOptions->sCustomStyleTheme)); |
1926 |
} |
} |
|
#endif |
|
1927 |
} |
} |
1928 |
if (m_pOptions->sCustomColorTheme != sOldCustomColorTheme) { |
if (m_pOptions->sCustomColorTheme != sOldCustomColorTheme) { |
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) |
|
|
++iNeedRestart; |
|
|
#else |
|
1929 |
if (m_pOptions->sCustomColorTheme.isEmpty()) { |
if (m_pOptions->sCustomColorTheme.isEmpty()) { |
1930 |
++iNeedRestart; |
++iNeedRestart; |
1931 |
} else { |
} else { |
1934 |
&m_pOptions->settings(), m_pOptions->sCustomColorTheme, pal)) |
&m_pOptions->settings(), m_pOptions->sCustomColorTheme, pal)) |
1935 |
QApplication::setPalette(pal); |
QApplication::setPalette(pal); |
1936 |
} |
} |
|
#endif |
|
1937 |
} |
} |
1938 |
// Check wheather something immediate has changed. |
// Check wheather something immediate has changed. |
1939 |
if (( bOldMessagesLog && !m_pOptions->bMessagesLog) || |
if (( bOldMessagesLog && !m_pOptions->bMessagesLog) || |