1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Merge pull request #5613

TriKriSta (1):
      feat: add border for qrcode
This commit is contained in:
Anthony Bilinski 2019-04-12 01:49:09 -07:00
commit 63ef6e3ff4
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -94,6 +94,8 @@ void QRWidget::paintImage()
painter.setPen(Qt::NoPen);
painter.drawRect(0, 0, size.width(), size.height());
painter.setBrush(fg);
painter.scale(0.96, 0.96);
painter.translate(size.width() * 0.02, size.height() * 0.02);
const int s = qr->width > 0 ? qr->width : 1;
const double w = width();
const double h = height();