mirror of
https://github.com/status-im/qzxing.git
synced 2025-02-16 12:58:31 +00:00
Fixed problem with symbol '?' in string for encoding
This commit is contained in:
parent
9711217258
commit
e112b315fb
@ -28,7 +28,7 @@ QImage QZXingImageProvider::requestImage(const QString &id, QSize *size, const Q
|
||||
QZXing::EncoderFormat format = QZXing::EncoderFormat_QR_CODE;
|
||||
QZXing::EncodeErrorCorrectionLevel correctionLevel = QZXing::EncodeErrorCorrectionLevel_L;
|
||||
|
||||
int customSettingsIndex = id.lastIndexOf('?');
|
||||
int customSettingsIndex = id.lastIndexOf(QRegExp("\?[cf]"));
|
||||
if(customSettingsIndex >= 0)
|
||||
{
|
||||
int startOfDataIndex = slashIndex + 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user