eric7/E5Gui/E5ModelMenu.py

branch
eric7
changeset 8319
ea11a3948f40
parent 8318
962bce857696
equal deleted inserted replaced
8318:962bce857696 8319:ea11a3948f40
40 self.__dragStartPosition = QPoint() 40 self.__dragStartPosition = QPoint()
41 41
42 self.setAcceptDrops(True) 42 self.setAcceptDrops(True)
43 43
44 self._mouseButton = Qt.MouseButton.NoButton 44 self._mouseButton = Qt.MouseButton.NoButton
45 self._keyboardModifiers = Qt.KeyboardModifiers( 45 self._keyboardModifiers = Qt.KeyboardModifier.NoModifier
46 Qt.KeyboardModifier.NoModifier)
47 self.__dropRow = -1 46 self.__dropRow = -1
48 self.__dropIndex = None 47 self.__dropIndex = None
49 48
50 # This is to ensure it will be shown on Mac OS X 49 # This is to ensure it will be shown on Mac OS X
51 self.addAction("--not populated--") 50 self.addAction("--not populated--")
427 def resetFlags(self): 426 def resetFlags(self):
428 """ 427 """
429 Public method to reset the saved internal state. 428 Public method to reset the saved internal state.
430 """ 429 """
431 self._mouseButton = Qt.MouseButton.NoButton 430 self._mouseButton = Qt.MouseButton.NoButton
432 self._keyboardModifiers = Qt.KeyboardModifiers( 431 self._keyboardModifiers = Qt.KeyboardModifier.NoModifier
433 Qt.KeyboardModifier.NoModifier)
434 432
435 def removeEntry(self, idx): 433 def removeEntry(self, idx):
436 """ 434 """
437 Public method to remove a menu entry. 435 Public method to remove a menu entry.
438 436

eric ide

mercurial