if (e->buttons() & Qt::LeftButton) {
_grabbed_marker = NULL;
+ clear_selection();
+
if (_view.cursors_shown()) {
CursorPair &cursors = _view.cursors();
if (cursors.first().get_label_rect(
_grabbed_marker = &cursors.second();
}
+ if(_grabbed_marker)
+ _grabbed_marker->select();
+
selection_changed();
}
}
connect(_header, SIGNAL(signals_moved()),
this, SLOT(on_signals_moved()));
+ connect(_header, SIGNAL(selection_changed()),
+ _ruler, SLOT(clear_selection()));
+ connect(_ruler, SIGNAL(selection_changed()),
+ _header, SLOT(clear_selection()));
+
setViewportMargins(LabelMarginWidth, RulerHeight, 0, 0);
setViewport(_viewport);