- const QRect signal_heading_rect(
- 0, s->get_v_offset() - v_offset,
- w, View::SignalHeight);
-
- s->paint_label(painter, signal_heading_rect,
- s->pt_in_label_rect(signal_heading_rect, _mouse_point));
+ const int y = s->get_v_offset() - v_offset;
+ const bool highlight = !dragging && s->pt_in_label_rect(
+ y, 0, w, _mouse_point);
+ s->paint_label(painter, y, w, highlight);