mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-09 12:29:44 +00:00
Qr scanner: use camera description on Windows
This commit is contained in:
parent
ae5ff35cc3
commit
2b2107b32d
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue