diff options
author | Micah Lee <micah@micahflee.com> | 2021-08-20 14:43:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-20 14:43:21 -0700 |
commit | b66e742bc20ae977232fc53f22d485c10173ac2f (patch) | |
tree | c6eb66c340c34b45bac5525350c5eb5c43fe33a6 /desktop/src/onionshare/widgets.py | |
parent | 76104671c3eacbef53ad96fffd8a57512ab2d093 (diff) | |
parent | 02254b13bb4818745193092f2144fd83726d79e7 (diff) | |
download | onionshare-b66e742bc20ae977232fc53f22d485c10173ac2f.tar.gz onionshare-b66e742bc20ae977232fc53f22d485c10173ac2f.zip |
Merge pull request #1395 from onionshare/developv2.3.3
Version 2.3.3, merge develop into stable
Diffstat (limited to 'desktop/src/onionshare/widgets.py')
-rw-r--r-- | desktop/src/onionshare/widgets.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/desktop/src/onionshare/widgets.py b/desktop/src/onionshare/widgets.py index a1880a2e..c239d03a 100644 --- a/desktop/src/onionshare/widgets.py +++ b/desktop/src/onionshare/widgets.py @@ -84,14 +84,15 @@ class AddFileDialog(QtWidgets.QFileDialog): QtWidgets.QDialog.accept(self) -class MinimumWidthWidget(QtWidgets.QWidget): +class MinimumSizeWidget(QtWidgets.QWidget): """ - An empty widget with a minimum width, just to force layouts to behave + An empty widget with a minimum width and height, just to force layouts to behave """ - def __init__(self, width): - super(MinimumWidthWidget, self).__init__() + def __init__(self, width, height): + super(MinimumSizeWidget, self).__init__() self.setMinimumWidth(width) + self.setMinimumHeight(height) class Image(qrcode.image.base.BaseImage): |