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

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

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

revision 3648 by capela, Tue Dec 10 10:34:06 2019 UTC revision 3654 by capela, Wed Dec 11 15:27:16 2019 UTC
# Line 33  Line 33 
33    
34  #include <QStyleFactory>  #include <QStyleFactory>
35    
 namespace QSampler {  
36    
37  // Default (empty/blank) name.  // Default (empty/blank) name.
38  static const char *g_pszDefName = QT_TR_NOOP("(default)");  static const char *g_pszDefName = QT_TRANSLATE_NOOP("qsamplerOptionsForm", "(default)");
39    
40    
41    namespace QSampler {
42    
43  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
44  // QSampler::OptionsForm -- Options form implementation.  // QSampler::OptionsForm -- Options form implementation.
# Line 591  void OptionsForm::resetCustomColorThemes Line 593  void OptionsForm::resetCustomColorThemes
593                  PaletteForm::namedPaletteList(&m_pOptions->settings()));                  PaletteForm::namedPaletteList(&m_pOptions->settings()));
594    
595          int iCustomColorTheme = 0;          int iCustomColorTheme = 0;
596          if (!sCustomColorTheme.isEmpty())          if (!sCustomColorTheme.isEmpty()) {
597                  iCustomColorTheme = m_ui.CustomColorThemeComboBox->findText(                  iCustomColorTheme = m_ui.CustomColorThemeComboBox->findText(
598                          sCustomColorTheme);                          sCustomColorTheme);
599                    if (iCustomColorTheme < 0)
600                            iCustomColorTheme = 0;
601            }
602          m_ui.CustomColorThemeComboBox->setCurrentIndex(iCustomColorTheme);          m_ui.CustomColorThemeComboBox->setCurrentIndex(iCustomColorTheme);
603  }  }
604    
# Line 608  void OptionsForm::resetCustomStyleThemes Line 613  void OptionsForm::resetCustomStyleThemes
613          m_ui.CustomStyleThemeComboBox->addItems(QStyleFactory::keys());          m_ui.CustomStyleThemeComboBox->addItems(QStyleFactory::keys());
614    
615          int iCustomStyleTheme = 0;          int iCustomStyleTheme = 0;
616          if (!sCustomStyleTheme.isEmpty())          if (!sCustomStyleTheme.isEmpty()) {
617                  iCustomStyleTheme = m_ui.CustomStyleThemeComboBox->findText(                  iCustomStyleTheme = m_ui.CustomStyleThemeComboBox->findText(
618                          sCustomStyleTheme);                          sCustomStyleTheme);
619                    if (iCustomStyleTheme < 0)
620                            iCustomStyleTheme = 0;
621            }
622          m_ui.CustomStyleThemeComboBox->setCurrentIndex(iCustomStyleTheme);          m_ui.CustomStyleThemeComboBox->setCurrentIndex(iCustomStyleTheme);
623  }  }
624    

Legend:
Removed from v.3648  
changed lines
  Added in v.3654

  ViewVC Help
Powered by ViewVC