mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
cmake: drop support for Qt 5
This commit is contained in:
+1
-12
@@ -120,18 +120,7 @@ void SendWidget::fillAddress(const QString &address) {
|
||||
}
|
||||
|
||||
void SendWidget::scanClicked() {
|
||||
#if defined(WITH_SCANNER) && QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||
auto cameras = QCameraInfo::availableCameras();
|
||||
if (cameras.count() < 1) {
|
||||
Utils::showError(this, "Can't open QR scanner", "No available cameras found");
|
||||
return;
|
||||
}
|
||||
|
||||
auto *dialog = new QrCodeScanDialog(this);
|
||||
dialog->exec();
|
||||
ui->lineAddress->setText(dialog->decodedString);
|
||||
dialog->deleteLater();
|
||||
#elif defined(WITH_SCANNER)
|
||||
#if defined(WITH_SCANNER)
|
||||
auto cameras = QMediaDevices::videoInputs();
|
||||
if (cameras.empty()) {
|
||||
Utils::showError(this, "Can't open QR scanner", "No available cameras found");
|
||||
|
||||
Reference in New Issue
Block a user