/[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 1513 by capela, Fri Nov 23 09:32:06 2007 UTC revision 1519 by capela, Sat Nov 24 13:06:19 2007 UTC
# Line 29  Line 29 
29  #include "qsamplerInstrument.h"  #include "qsamplerInstrument.h"
30  #include "qsamplerMainForm.h"  #include "qsamplerMainForm.h"
31    
32    #include <QHeaderView>
33    
34    
35  namespace QSampler {  namespace QSampler {
36    
# Line 52  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.1513  
changed lines
  Added in v.1519

  ViewVC Help
Powered by ViewVC