/[svn]/qsampler/trunk/src/qsamplerMainForm.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerMainForm.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3760 by capela, Mon Mar 30 16:38:22 2020 UTC revision 3761 by capela, Tue Mar 31 11:06:16 2020 UTC
# Line 1918  void MainForm::viewOptions (void) Line 1918  void MainForm::viewOptions (void)
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 {
# Line 1941  void MainForm::viewOptions (void) Line 1934  void MainForm::viewOptions (void)
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) ||

Legend:
Removed from v.3760  
changed lines
  Added in v.3761

  ViewVC Help
Powered by ViewVC