- if(mouse_over_signal)
- mouse_over_signal->select(!mouse_over_signal->selected());
-
- if(event->button() & Qt::LeftButton) {
- _mouse_down_point = event->pos();
+ if (mouse_over_signal) {
+ if (mouse_over_signal->selected())
+ mouse_over_signal->select(false);
+ else {
+ mouse_over_signal->select(true);
+
+ if (~QApplication::keyboardModifiers() &
+ Qt::ControlModifier)
+ _drag_sigs.clear();
+
+ // Add the signal to the drag list
+ if (event->button() & Qt::LeftButton)
+ _drag_sigs.push_back(
+ make_pair(mouse_over_signal,
+ mouse_over_signal->get_v_offset()));
+ }
+ }