E5Gui/E5ModelMenu.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1112
8a7d1b9d18db
--- a/E5Gui/E5ModelMenu.py	Fri Mar 11 08:55:14 2011 +0100
+++ b/E5Gui/E5ModelMenu.py	Fri Mar 11 16:51:57 2011 +0100
@@ -12,6 +12,7 @@
 
 import UI.PixmapCache
 
+
 class E5ModelMenu(QMenu):
     """
     Class implementing a menu populated from a QAbstractItemModel.
@@ -20,7 +21,7 @@
     """
     activated = pyqtSignal(QModelIndex)
     
-    def __init__(self, parent = None):
+    def __init__(self, parent=None):
         """
         Constructor
         
@@ -179,7 +180,7 @@
         """
         return E5ModelMenu(self)
     
-    def createMenu(self, parent, max_, parentMenu = None, menu = None):
+    def createMenu(self, parent, max_, parentMenu=None, menu=None):
         """
         Public method to put all the children of a parent into a menu of a given length.
         
@@ -329,7 +330,7 @@
             self.__dropRow = row
             self.__dropIndex = parentIndex
             evt.acceptProposedAction()
-            self.__model.dropMimeData(evt.mimeData(), evt.dropAction(), 
+            self.__model.dropMimeData(evt.mimeData(), evt.dropAction(),
                                       row, 0, parentIndex)
             self.close()
         

eric ide

mercurial