NOISSUE fix build more

QUrlQuery does not accept initializer lists in Qt 5.4...
This commit is contained in:
Petr Mrázek 2024-12-26 03:49:26 +01:00
parent 009abd5d94
commit 7bd22bc4e5

View File

@ -87,7 +87,9 @@ void MSALoginDialog::showVerificationUriAndCode(const QUrl& uri, const QString&
ui->progressBar->setVisible(true);
m_codeUrl = uri;
m_codeUrl.setQuery(QUrlQuery({{"otc", code}}));
QUrlQuery query;
query.addQueryItem("otc", code);
m_codeUrl.setQuery(query);
QString codeUrlString = m_codeUrl.toString();
QImage qrcode = qrcode::generateQr(codeUrlString, 300);