/[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 1519 by capela, Sat Nov 24 13:06:19 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)),

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

  ViewVC Help
Powered by ViewVC