[Pkg-privacy-commits] [onionshare] 186/256: Split SettingsDialog into two columns, because the layout didn't fit on my Mac

Ulrike Uhlig ulrike at moszumanska.debian.org
Fri May 26 12:53:37 UTC 2017


This is an automated email from the git hooks/post-receive script.

ulrike pushed a commit to branch master
in repository onionshare.

commit ea745e63f3115991540d5dca9ebd32b813a8d5ec
Author: Micah Lee <micah at micahflee.com>
Date:   Tue May 16 17:02:00 2017 -0700

    Split SettingsDialog into two columns, because the layout didn't fit on my Mac
---
 onionshare_gui/settings_dialog.py | 23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

diff --git a/onionshare_gui/settings_dialog.py b/onionshare_gui/settings_dialog.py
index 71b5bfa..dfd285b 100644
--- a/onionshare_gui/settings_dialog.py
+++ b/onionshare_gui/settings_dialog.py
@@ -218,14 +218,25 @@ class SettingsDialog(QtWidgets.QDialog):
         self.tor_status.hide()
 
         # Layout
+        left_col_layout = QtWidgets.QVBoxLayout()
+        left_col_layout.addWidget(sharing_group)
+        left_col_layout.addWidget(stealth_group)
+        left_col_layout.addWidget(autoupdate_group)
+        left_col_layout.addStretch()
+
+        right_col_layout = QtWidgets.QVBoxLayout()
+        right_col_layout.addWidget(connection_type_group)
+        right_col_layout.addWidget(self.tor_status)
+        right_col_layout.addStretch()
+
+        col_layout = QtWidgets.QHBoxLayout()
+        col_layout.addLayout(left_col_layout)
+        col_layout.addLayout(right_col_layout)
+
         layout = QtWidgets.QVBoxLayout()
-        layout.addWidget(sharing_group)
-        layout.addWidget(stealth_group)
-        layout.addWidget(autoupdate_group)
-        layout.addWidget(connection_type_group)
-        layout.addStretch()
+        layout.addLayout(col_layout)
         layout.addLayout(buttons_layout)
-        layout.addWidget(self.tor_status)
+
         self.setLayout(layout)
         self.cancel_button.setFocus()
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git



More information about the Pkg-privacy-commits mailing list