Graphics/UMLGraphicsView.py

changeset 1112
8a7d1b9d18db
parent 945
8cd4d08fa9f6
child 1155
4cbef040f07e
--- a/Graphics/UMLGraphicsView.py	Sat Jun 04 11:53:15 2011 +0200
+++ b/Graphics/UMLGraphicsView.py	Sun Jun 05 18:25:36 2011 +0200
@@ -7,8 +7,8 @@
 Module implementing a subclass of E5GraphicsView for our diagrams.
 """
 
-from PyQt4.QtCore import *
-from PyQt4.QtGui import *
+from PyQt4.QtCore import pyqtSignal, Qt, QSignalMapper, QFileInfo
+from PyQt4.QtGui import QAction, QToolBar, QDialog, QPrinter, QPrintDialog
 
 from E5Graphics.E5GraphicsView import E5GraphicsView
 
@@ -256,7 +256,7 @@
         
         # step 2: select all given items
         for itm in items:
-            if isinstance(itm, UMLWidget):
+            if isinstance(itm, UMLItem):
                 itm.setSelected(True)
         
     def selectItem(self, item):
@@ -265,7 +265,7 @@
         
         @param item item to be selected (QGraphicsItemItem)
         """
-        if isinstance(item, UMLWidget):
+        if isinstance(item, UMLItem):
             item.setSelected(not item.isSelected())
         
     def __deleteShape(self):

eric ide

mercurial