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

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

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

revision 1509 by capela, Thu Nov 22 11:10:44 2007 UTC revision 1523 by capela, Sun Nov 25 11:40:47 2007 UTC
# Line 20  Line 20 
20    
21  *****************************************************************************/  *****************************************************************************/
22    
23    #include "qsamplerAbout.h"
24  #include "qsamplerInstrumentListForm.h"  #include "qsamplerInstrumentListForm.h"
25    
26  #include "qsamplerInstrumentForm.h"  #include "qsamplerInstrumentForm.h"
27  #include "qsamplerMainForm.h"  
28  #include "qsamplerOptions.h"  #include "qsamplerOptions.h"
29  #include "qsamplerInstrument.h"  #include "qsamplerInstrument.h"
30    #include "qsamplerMainForm.h"
31    
32    #include <QHeaderView>
33    
34    
35  namespace QSampler {  namespace QSampler {
# Line 50  InstrumentListForm::InstrumentListForm ( Line 54  InstrumentListForm::InstrumentListForm (
54          m_ui.InstrumentToolbar->addSeparator();          m_ui.InstrumentToolbar->addSeparator();
55          m_ui.InstrumentToolbar->addAction(m_ui.refreshInstrumentsAction);          m_ui.InstrumentToolbar->addAction(m_ui.refreshInstrumentsAction);
56    
57            int iRowHeight = m_ui.InstrumentTable->fontMetrics().height() + 4;
58            m_ui.InstrumentTable->verticalHeader()->setDefaultSectionSize(iRowHeight);
59            m_ui.InstrumentTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
60    
61          m_ui.InstrumentTable->setModel(&m_model);          m_ui.InstrumentTable->setModel(&m_model);
62          m_ui.InstrumentTable->setItemDelegate(&m_delegate);          m_ui.InstrumentTable->setItemDelegate(&m_delegate);
63            m_ui.InstrumentTable->verticalHeader()->hide();
64    
65          QObject::connect(m_pMapComboBox,          QObject::connect(m_pMapComboBox,
66                  SIGNAL(activated(int)),                  SIGNAL(activated(int)),
# Line 206  void InstrumentListForm::editInstrument Line 215  void InstrumentListForm::editInstrument
215                  if (oldInstrument.map()  == pInstrument->map()  &&                  if (oldInstrument.map()  == pInstrument->map()  &&
216                          oldInstrument.bank() == pInstrument->bank() &&                          oldInstrument.bank() == pInstrument->bank() &&
217                          oldInstrument.prog() == pInstrument->prog()) {                          oldInstrument.prog() == pInstrument->prog()) {
218                          // just update tree item...                          // Just update tree item...
219                          //pItem->update();                          //pItem->update();
220                  } else {                  } else {
221                          // Unmap old instance...                          // Unmap old instance...

Legend:
Removed from v.1509  
changed lines
  Added in v.1523

  ViewVC Help
Powered by ViewVC