Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

grep: update drag logic w/ latest from status.py

Changeset 80f6e0a3631c

Parent dc8041b240d0

by Steve Borho

Changes to one file · Browse files at 80f6e0a3631c Showing diff from parent dc8041b240d0 Diff from another changeset...

 
21
22
23
 
24
25
26
 
261
262
263
 
 
 
 
 
264
 
 
 
 
 
 
265
 
266
267
268
 
21
22
23
24
25
26
27
 
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
@@ -21,6 +21,7 @@
 # prove search features    # Technical Debt +# add 'optional' entries for -c, -I, -X  # draggable matches from history  # tortoisehg.editor with line number  # smart visual diffs @@ -261,8 +262,20 @@
  d.setMimeData(m)   d.start(Qt.CopyAction)   + def mousePressEvent(self, event): + self.pressPos = event.pos() + self.pressTime = QTime.currentTime() + return QTreeView.mousePressEvent(self, event) +   def mouseMoveEvent(self, event): + d = event.pos() - self.pressPos + if d.manhattanLength() < QApplication.startDragDistance(): + return QTreeView.mouseMoveEvent(self, event) + elapsed = self.pressTime.msecsTo(QTime.currentTime()) + if elapsed < QApplication.startDragTime(): + return QTreeView.mouseMoveEvent(self, event)   self.dragObject() + return QTreeView.mouseMoveEvent(self, event)     def customContextMenuRequested(self, point):   selrows = []