Qr scanner: use camera description on Windows

This commit is contained in:
tobtoht 2021-07-10 17:36:30 +02:00
parent ae5ff35cc3
commit 2b2107b32d
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -26,7 +26,11 @@ QrCodeScanDialog::QrCodeScanDialog(QWidget *parent)
}
for (const auto &camera : m_cameras) {
#ifdef Q_OS_WIN
ui->combo_camera->addItem(camera.description());
#else
ui->combo_camera->addItem(camera.deviceName());
#endif
}
connect(ui->combo_camera, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &QrCodeScanDialog::onCameraSwitched);