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

Diff of /qsampler/trunk/src/qsamplerPaletteForm.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 119  PaletteForm::PaletteForm ( QWidget *pare Line 119  PaletteForm::PaletteForm ( QWidget *pare
119          m_ui.paletteView->setColumnHidden(3, true);          m_ui.paletteView->setColumnHidden(3, true);
120    
121          QObject::connect(m_ui.nameCombo,          QObject::connect(m_ui.nameCombo,
                 SIGNAL(activated(const QString&)),  
                 SLOT(nameComboActivated(const QString&)));  
         QObject::connect(m_ui.nameCombo,  
122                  SIGNAL(editTextChanged(const QString&)),                  SIGNAL(editTextChanged(const QString&)),
123                  SLOT(nameComboChanged(const QString&)));                  SLOT(nameComboChanged(const QString&)));
124          QObject::connect(m_ui.saveButton,          QObject::connect(m_ui.saveButton,
# Line 232  QSettings *PaletteForm::settings (void) Line 229  QSettings *PaletteForm::settings (void)
229  }  }
230    
231    
 void PaletteForm::nameComboActivated ( const QString& name )  
 {  
         setPaletteName(name);  
 }  
   
   
232  void PaletteForm::nameComboChanged ( const QString& name )  void PaletteForm::nameComboChanged ( const QString& name )
233  {  {
234          if (m_dirtyCount > 0 || m_ui.nameCombo->findText(name) < 0)          if (m_dirtyCount > 0 || m_ui.nameCombo->findText(name) < 0) {
235                  updateDialogButtons();                  updateDialogButtons();
236          else          } else {
237                  setPaletteName(name);                  setPaletteName(name);
238                    ++m_dirtyTotal;
239            }
240  }  }
241    
242    

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

  ViewVC Help
Powered by ViewVC