QComboBox *channel_combo = new QComboBox;
channel_combo->addItem(QString("(none)"));
if (bus.device.type == InputSourceType::CAPTURE_CARD ||
QComboBox *channel_combo = new QComboBox;
channel_combo->addItem(QString("(none)"));
if (bus.device.type == InputSourceType::CAPTURE_CARD ||
auto device_it = devices.find(bus.device);
assert(device_it != devices.end());
unsigned num_device_channels = device_it->second.num_channels;
auto device_it = devices.find(bus.device);
assert(device_it != devices.end());
unsigned num_device_channels = device_it->second.num_channels;
channel_combo->setCurrentIndex(0);
}
connect(channel_combo, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
channel_combo->setCurrentIndex(0);
}
connect(channel_combo, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),