E4Graphics/E4GraphicsView.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
--- a/E4Graphics/E4GraphicsView.py	Fri Jan 01 16:11:36 2010 +0000
+++ b/E4Graphics/E4GraphicsView.py	Sat Jan 02 15:11:35 2010 +0000
@@ -133,11 +133,11 @@
         @param border border width to include in the calculation (integer)
         @return the minimum rectangle (QRectF)
         """
-        startx = sys.maxint
-        starty = sys.maxint
+        startx = sys.maxsize
+        starty = sys.maxsize
         endx = 0
         endy = 0
-        items = self.filteredItems(self.scene().items())
+        items = self.filteredItems(list(self.scene().items()))
         for itm in items:
             rect = itm.sceneBoundingRect()
             itmEndX = rect.x() + rect.width()
@@ -169,7 +169,7 @@
         """
         endx = 0
         endy = 0
-        items = self.filteredItems(self.scene().items())
+        items = self.filteredItems(list(self.scene().items()))
         for itm in items:
             rect = itm.sceneBoundingRect()
             itmEndX = rect.x() + rect.width()

eric ide

mercurial