Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Changed dragstart to dragenter
  • Loading branch information
mooshu1x2 committed Aug 2, 2016
1 parent 1a54afe commit d53683a9559df9a75c8fbb8ea58b3bb16cba7919
Showing 2 changed files with 4 additions and 4 deletions.
@@ -19,7 +19,7 @@ Changelog
* ``mouseover``
* ``keypress`` (optional)
* ``keydown`` (optional)
* ``dragstart``
* ``dragenter``
* ``dragleave``
* ``dragmove``
* ``dragdrop``
@@ -87,7 +87,7 @@ def __init__(self,
QEvent.MouseButtonPress: {'mousedown': self.handleMouseEvents},
QEvent.MouseButtonRelease: {'mouseup': self.handleMouseEvents},
QEvent.MouseMove: {'mousemove': self.handleMouseEvents},
QEvent.DragEnter: {'dragstart': self.handleDragEvents},
QEvent.DragEnter: {'dragenter': self.handleDragEvents},
QEvent.DragLeave: {'dragleave': self.handleDragEvents},
QEvent.DragMove: {'dragmove': self.handleDragEvents},
QEvent.Drop: {'dragdrop': self.handleDragEvents},
@@ -208,9 +208,9 @@ def handleDragEvents (self, event_type, event, object):
"""

details = {}
if event_type == 'dragstart':
if event_type == 'dragenter':
if self.timer == False:
# Only start the timer on the first dragstart encountered
# Only start the timer on the first dragenter encountered
self.dd = datetime.datetime.now ()
self.timer = True
details = {"source" : self.getSelector (event.source())}

0 comments on commit d53683a

Please sign in to comment.