Fix #1292/1294 by snapping to any edge when not hovering over a signal
authorSoeren Apel <soeren@apelpie.net>
Wed, 3 Oct 2018 19:52:00 +0000 (21:52 +0200)
committerSoeren Apel <soeren@apelpie.net>
Wed, 3 Oct 2018 20:05:53 +0000 (22:05 +0200)
commitf6b6c9bf50999dc99f9517318ffd3114cae4960f
tree7c9661e636bd177a69d626ea80aee093fad82845
parentfc1df2df99c8ac41269ffba5966fcbb9a2e28479
Fix #1292/1294 by snapping to any edge when not hovering over a signal

1292: TimeItem instances now snap to any edge when not hovering over a
      signal, including the ruler itself. Hence, there is always an area
      where one can hover without selecting a signal, even if the entire
      view is full of signals.
      Cursors also show the desired behavior: the left edge snaps while
      the right does not. Hence, the width is kept constant. If the user
      wants to snap the right edge to a signal edge, this can be achieved
      by dragging the right edge separately.

1294: TimeItem instances now snap to any edge - before, they were snapping
      only to edges when hovering over a signal.
pv/views/trace/view.cpp
pv/views/trace/view.hpp