/[svn]/qsampler/trunk/src/qsamplerInstrumentListForm.ui.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerInstrumentListForm.ui.h

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

revision 1014 by capela, Mon Jan 8 16:52:48 2007 UTC revision 1015 by capela, Mon Jan 8 19:10:42 2007 UTC
# Line 25  Line 25 
25  #include "qsamplerMainForm.h"  #include "qsamplerMainForm.h"
26  #include "qsamplerOptions.h"  #include "qsamplerOptions.h"
27    
 #include <qapplication.h>  
28  #include <qcombobox.h>  #include <qcombobox.h>
29  #include <qtooltip.h>  #include <qtooltip.h>
30    
# Line 93  void qsamplerInstrumentListForm::refresh Line 92  void qsamplerInstrumentListForm::refresh
92          if (pOptions == NULL)          if (pOptions == NULL)
93                  return;                  return;
94    
         QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));  
   
95          // Get/save current map selection...          // Get/save current map selection...
96          int iMap = m_pMapComboBox->currentItem();          int iMap = m_pMapComboBox->currentItem();
97          if (iMap < 0 || m_pMapComboBox->count() < 2)          if (iMap < 0 || m_pMapComboBox->count() < 2)
# Line 111  void qsamplerInstrumentListForm::refresh Line 108  void qsamplerInstrumentListForm::refresh
108          m_pMapComboBox->setCurrentItem(iMap);          m_pMapComboBox->setCurrentItem(iMap);
109          m_pMapComboBox->setEnabled(m_pMapComboBox->count() > 1);          m_pMapComboBox->setEnabled(m_pMapComboBox->count() > 1);
110    
         QApplication::restoreOverrideCursor();  
   
111          activateMap(iMap);          activateMap(iMap);
112  }  }
113    
# Line 128  void qsamplerInstrumentListForm::activat Line 123  void qsamplerInstrumentListForm::activat
123          if (pOptions == NULL)          if (pOptions == NULL)
124                  return;                  return;
125    
         QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));  
   
126          int iMidiMap = iMap - 1;          int iMidiMap = iMap - 1;
127          if (iMidiMap >= 0)          if (iMidiMap >= 0)
128                  pOptions->iMidiMap = iMidiMap;                  pOptions->iMidiMap = iMidiMap;
129    
130          InstrumentList->setMidiMap(iMidiMap);          InstrumentList->setMidiMap(iMidiMap);
131          InstrumentList->refresh();          InstrumentList->refresh();
   
         QApplication::restoreOverrideCursor();  
132  }  }
133    
134    

Legend:
Removed from v.1014  
changed lines
  Added in v.1015

  ViewVC Help
Powered by ViewVC