cleanup
This commit is contained in:
@@ -140,8 +140,6 @@ void Marker::mouseMoveEvent(QMouseEvent* e)
|
|||||||
if (active_) {
|
if (active_) {
|
||||||
dragging_ = true;
|
dragging_ = true;
|
||||||
|
|
||||||
QPoint old_pos = mapToGlobal(pos());
|
|
||||||
|
|
||||||
int new_pos = marker_start_x_ + e->globalPos().x() - click_position_.x();
|
int new_pos = marker_start_x_ + e->globalPos().x() - click_position_.x();
|
||||||
|
|
||||||
if (new_pos > -3 && new_pos < static_cast<SeekableWidget *>(parent())->width() - 3) {
|
if (new_pos > -3 && new_pos < static_cast<SeekableWidget *>(parent())->width() - 3) {
|
||||||
|
|||||||
Reference in New Issue
Block a user