Preferences/ShortcutDialog.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3366
6084bb3c3911
child 3539
0c2dc1446ebf
--- a/Preferences/ShortcutDialog.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/Preferences/ShortcutDialog.py	Thu Apr 03 23:05:31 2014 +0200
@@ -43,10 +43,10 @@
         self.noCheck = False
         self.objectType = ""
         
-        self.primaryClearButton.clicked[()].connect(self.__clear)
-        self.alternateClearButton.clicked[()].connect(self.__clear)
-        self.primaryButton.clicked[()].connect(self.__typeChanged)
-        self.alternateButton.clicked[()].connect(self.__typeChanged)
+        self.primaryClearButton.clicked.connect(self.__clear)
+        self.alternateClearButton.clicked.connect(self.__clear)
+        self.primaryButton.clicked.connect(self.__typeChanged)
+        self.alternateButton.clicked.connect(self.__typeChanged)
         
         self.shortcutsGroup.installEventFilter(self)
         self.primaryButton.installEventFilter(self)
@@ -58,6 +58,9 @@
         
         self.buttonBox.button(QDialogButtonBox.Ok).installEventFilter(self)
         self.buttonBox.button(QDialogButtonBox.Cancel).installEventFilter(self)
+        
+        msh = self.minimumSizeHint()
+        self.resize(max(self.width(), msh.width()), msh.height())
 
     def setKeys(self, key, alternateKey,  noCheck, objectType):
         """

eric ide

mercurial