Angel Ezquerra  committed 8e9438e

repoview: change unapplied patch drop indicator into a line

Up until now, when dragging unapplied patches to reorder them a rectangular
drop indicator appeared. This drop indicator appeared on top of the patch below
the mouse. This was confusing since it was not possible to tell whether the
patch that was being dragged would be dropped above or below the patch that was
marked with the rectangle.

This patch changes the drop indicator into a thin line that appears where the
patch will be dropped.

  • Participants
  • Parent commits 5572e41
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/

             # Drop indicators should be painted using the full viewport width
             vp = widget.viewport().rect()
             painter.drawRect(vp.x(), option.rect.y(),
-                             vp.width() - 1, option.rect.height())
+                             vp.width() - 1, 0.5)
             self._style.drawPrimitive(element, option, painter, widget)
     # Delegate all other methods overridden by QProxyStyle to the base class