Fixed an issue in the sidebar widget causing splitter size not being saved when moved.

Thu, 06 Jan 2011 19:45:21 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 06 Jan 2011 19:45:21 +0100
changeset 818
476d99fd8981
parent 817
84b3d694c142
child 819
832e6c21bd78

Fixed an issue in the sidebar widget causing splitter size not being saved when moved.

E5Gui/E5SideBar.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5SideBar.py	Thu Jan 06 19:28:48 2011 +0100
+++ b/E5Gui/E5SideBar.py	Thu Jan 06 19:45:21 2011 +0100
@@ -86,6 +86,17 @@
         @param splitter reference to the splitter (QSplitter)
         """
         self.splitter = splitter
+        self.splitter.splitterMoved.connect(self.__splitterMoved)
+    
+    def __splitterMoved(self, pos, index):
+        """
+        Private slot to react on splitter moves.
+        
+        @param pos new position of the splitter handle (integer)
+        @param index index of the splitter handle (integer)
+        """
+        if self.splitter:
+            self.splitterSizes = self.splitter.sizes()
     
     def shrink(self):
         """

eric ide

mercurial