/[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 1510 by capela, Thu Nov 22 14:17:24 2007 UTC revision 1528 by capela, Mon Nov 26 18:24:38 2007 UTC
# 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    
# Line 263  void DeviceForm::deleteDevice (void) Line 271  void DeviceForm::deleteDevice (void)
271          if (pOptions && pOptions->bConfirmRemove) {          if (pOptions && pOptions->bConfirmRemove) {
272                  if (QMessageBox::warning(this,                  if (QMessageBox::warning(this,
273                          QSAMPLER_TITLE ": " + tr("Warning"),                          QSAMPLER_TITLE ": " + tr("Warning"),
274                          tr("Delete device:\n\n"                          tr("About to delete device:\n\n"
275                          "%1\n\n"                          "%1\n\n"
276                          "Are you sure?")                          "Are you sure?")
277                          .arg(device.deviceName()),                          .arg(device.deviceName()),

Legend:
Removed from v.1510  
changed lines
  Added in v.1528

  ViewVC Help
Powered by ViewVC