form_layout_(&form_),
drivers_(&form_),
serial_devices_(&form_),
- scan_button_(tr("&Scan for Devices"), this),
+ scan_button_(tr("&Scan for devices using driver above"), this),
device_list_(this),
button_box_(QDialogButtonBox::Ok | QDialogButtonBox::Cancel,
Qt::Horizontal, this)
if (supported_device)
drivers_.addItem(QString("%1 (%2)").arg(
- driver->long_name().c_str()).arg(name.c_str()),
+ driver->long_name().c_str(), name.c_str()),
qVariantFromValue(driver));
}
}
serial_devices_.clear();
for (auto serial : device_manager_.context()->serials(driver))
serial_devices_.addItem(QString("%1 (%2)").arg(
- serial.first.c_str()).arg(serial.second.c_str()),
+ serial.first.c_str(), serial.second.c_str()),
QString::fromStdString(serial.first));
}