93 |
SIGNAL(clicked()), |
SIGNAL(clicked()), |
94 |
SLOT(refreshDevices())); |
SLOT(refreshDevices())); |
95 |
QObject::connect(m_ui.DriverNameComboBox, |
QObject::connect(m_ui.DriverNameComboBox, |
96 |
SIGNAL(activated(const QString&)), |
SIGNAL(activated(int)), |
97 |
SLOT(selectDriver(const QString&))); |
SLOT(selectDriver(int))); |
98 |
QObject::connect(m_ui.DevicePortComboBox, |
QObject::connect(m_ui.DevicePortComboBox, |
99 |
SIGNAL(activated(int)), |
SIGNAL(activated(int)), |
100 |
SLOT(selectDevicePort(int))); |
SLOT(selectDevicePort(int))); |
380 |
|
|
381 |
|
|
382 |
// Driver selection slot. |
// Driver selection slot. |
383 |
void DeviceForm::selectDriver ( const QString& sDriverName ) |
void DeviceForm::selectDriver ( int iDriver ) |
384 |
{ |
{ |
385 |
if (m_iDirtySetup > 0) |
if (m_iDirtySetup > 0) |
386 |
return; |
return; |
388 |
// |
// |
389 |
// Driver name has changed for a new device... |
// Driver name has changed for a new device... |
390 |
// |
// |
391 |
|
const QString& sDriverName |
392 |
|
= m_ui.DriverNameComboBox->itemText(iDriver); |
393 |
|
if (sDriverName.isEmpty()) |
394 |
|
return; |
395 |
|
|
396 |
QTreeWidgetItem* pItem = m_ui.DeviceListView->currentItem(); |
QTreeWidgetItem* pItem = m_ui.DeviceListView->currentItem(); |
397 |
if (pItem == nullptr || pItem->type() != QSAMPLER_DEVICE_ITEM) |
if (pItem == nullptr || pItem->type() != QSAMPLER_DEVICE_ITEM) |