this, SLOT(on_action_set_name_triggered()));
connect(_action_set_colour, SIGNAL(triggered()),
this, SLOT(on_action_set_colour_triggered()));
this, SLOT(on_action_set_name_triggered()));
connect(_action_set_colour, SIGNAL(triggered()),
this, SLOT(on_action_set_colour_triggered()));
- s->paint_label(painter, signal_heading_rect,
- s->pt_in_label_rect(signal_heading_rect, _mouse_point));
+ const bool highlight = !dragging && s->pt_in_label_rect(
+ signal_heading_rect, _mouse_point);
+ s->paint_label(painter, signal_heading_rect, highlight);
+ if(~QApplication::keyboardModifiers() & Qt::ControlModifier) {
+ // Unselect all other signals because the Ctrl is not
+ // pressed
+ BOOST_FOREACH(const shared_ptr<Signal> s, sigs)
+ if(s != mouse_over_signal)
+ s->select(false);
+ }
+