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

Diff of /qsampler/trunk/src/qsamplerDeviceForm.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 1520 by capela, Sat Nov 24 13:22:00 2007 UTC
# Line 34  namespace QSampler { Line 34  namespace QSampler {
34  DeviceForm::DeviceForm ( QWidget *pParent, Qt::WindowFlags wflags )  DeviceForm::DeviceForm ( QWidget *pParent, Qt::WindowFlags wflags )
35          : QDialog(pParent, wflags)          : QDialog(pParent, wflags)
36  {  {
37      m_ui.setupUi(this);          m_ui.setupUi(this);
38    
39          // Initialize locals.          // Initialize locals.
40          m_iDirtySetup = 0;          m_iDirtySetup = 0;
# Line 48  DeviceForm::DeviceForm ( QWidget *pParen Line 48  DeviceForm::DeviceForm ( QWidget *pParen
48    
49          m_ui.DeviceListView->header()->hide();          m_ui.DeviceListView->header()->hide();
50    
51            int iRowHeight = m_ui.DeviceParamTable->fontMetrics().height() + 4;
52            m_ui.DeviceParamTable->verticalHeader()->setDefaultSectionSize(iRowHeight);
53            m_ui.DevicePortParamTable->verticalHeader()->setDefaultSectionSize(iRowHeight);
54            m_ui.DeviceParamTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
55            m_ui.DevicePortParamTable->horizontalHeader()->setDefaultAlignment(Qt::AlignLeft);
56    
57          m_ui.DeviceParamTable->setModel(&m_deviceParamModel);          m_ui.DeviceParamTable->setModel(&m_deviceParamModel);
58          m_ui.DeviceParamTable->setItemDelegate(&m_deviceParamDelegate);          m_ui.DeviceParamTable->setItemDelegate(&m_deviceParamDelegate);
59          m_ui.DeviceParamTable->horizontalHeader()->setResizeMode(2, QHeaderView::Stretch);          m_ui.DeviceParamTable->horizontalHeader()->setResizeMode(2, QHeaderView::Stretch);
# Line 101  DeviceForm::DeviceForm ( QWidget *pParen Line 107  DeviceForm::DeviceForm ( QWidget *pParen
107                  SLOT(updatePortCellRenderers(const QModelIndex&, const QModelIndex&)));                  SLOT(updatePortCellRenderers(const QModelIndex&, const QModelIndex&)));
108  }  }
109    
110  DeviceForm::~DeviceForm() {  
111    DeviceForm::~DeviceForm (void)
112    {
113  }  }
114    
115    
# Line 112  void DeviceForm::showEvent ( QShowEvent Line 120  void DeviceForm::showEvent ( QShowEvent
120          if (pMainForm)          if (pMainForm)
121                  pMainForm->stabilizeForm();                  pMainForm->stabilizeForm();
122    
         stabilizeForm();  
   
123          QWidget::showEvent(pShowEvent);          QWidget::showEvent(pShowEvent);
124    
125            refreshDevices();
126  }  }
127    
128    

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

  ViewVC Help
Powered by ViewVC