mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Replace all uses of devicePixelRatio with devicePixelRatioF
This commit is contained in:
@ -267,12 +267,12 @@ void ServerConfigDialog::generateQR(const QString &serverAddress)
|
||||
if (image.isNull()) {
|
||||
qrCode->setText(tr("Could not load libqrencode."));
|
||||
} else {
|
||||
image = image.scaled(qrCode->size() * devicePixelRatio());
|
||||
image = image.scaled(qrCode->size() * devicePixelRatioF());
|
||||
|
||||
QPixmap pMask(image.size());
|
||||
pMask.fill(QColor(66, 66, 66));
|
||||
pMask.setMask(image.createMaskFromColor(Qt::white));
|
||||
pMask.setDevicePixelRatio(devicePixelRatio());
|
||||
pMask.setDevicePixelRatio(devicePixelRatioF());
|
||||
|
||||
qrCode->setPixmap(pMask);
|
||||
}
|
||||
|
Reference in New Issue
Block a user