E5Gui/E5SideBar.py

branch
5_0_x
changeset 820
3336024d064a
parent 792
a13346916170
diff -r 09ab11885d37 -r 3336024d064a E5Gui/E5SideBar.py
--- a/E5Gui/E5SideBar.py	Wed Jan 05 16:22:18 2011 +0100
+++ b/E5Gui/E5SideBar.py	Thu Jan 06 19:47:21 2011 +0100
@@ -90,6 +90,18 @@
         @param splitter reference to the splitter (QSplitter)
         """
         self.splitter = splitter
+        self.connect(self.splitter, SIGNAL("splitterMoved(int, int)"), 
+                     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