diff options
author | Miguel Jacq <mig@mig5.net> | 2021-08-28 09:27:00 +1000 |
---|---|---|
committer | Miguel Jacq <mig@mig5.net> | 2021-08-28 09:27:00 +1000 |
commit | 0b41021c689a8c7c08be4fea574c0942014c21f4 (patch) | |
tree | 563073e91acc5810e2a05deae6b8a6f337e6423b /desktop | |
parent | 06344f23ad7561bf0fc568d1b77d10578ade64b6 (diff) | |
download | onionshare-0b41021c689a8c7c08be4fea574c0942014c21f4.tar.gz onionshare-0b41021c689a8c7c08be4fea574c0942014c21f4.zip |
Make QR Codes the same size
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/src/onionshare/widgets.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/src/onionshare/widgets.py b/desktop/src/onionshare/widgets.py index ad54a22d..ec4d5ddc 100644 --- a/desktop/src/onionshare/widgets.py +++ b/desktop/src/onionshare/widgets.py @@ -139,6 +139,8 @@ class QRCodeDialog(QtWidgets.QDialog): self.qr_label_url = QtWidgets.QLabel(self) self.qr_label_url.setPixmap(qrcode.make(url, image_factory=Image).pixmap()) + self.qr_label_url.setScaledContents(True) + self.qr_label_url.setFixedSize(350, 350) self.qr_label_url_title = QtWidgets.QLabel(self) self.qr_label_url_title.setText(strings._("gui_qr_label_url_title")) self.qr_label_url_title.setAlignment(QtCore.Qt.AlignCenter) @@ -157,6 +159,8 @@ class QRCodeDialog(QtWidgets.QDialog): if auth_string: self.qr_label_auth_string = QtWidgets.QLabel(self) self.qr_label_auth_string.setPixmap(qrcode.make(auth_string, image_factory=Image).pixmap()) + self.qr_label_auth_string.setScaledContents(True) + self.qr_label_auth_string.setFixedSize(350, 350) self.qr_label_auth_string_title = QtWidgets.QLabel(self) self.qr_label_auth_string_title.setText(strings._("gui_qr_label_auth_string_title")) self.qr_label_auth_string_title.setAlignment(QtCore.Qt.AlignCenter) |