Skip to content

Commit

Permalink
fixed moving channels in graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Špirk committed Oct 4, 2023
1 parent 3060b2f commit acfe902
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libshvvisu/src/timeline/graphwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,11 @@ void GraphWidget::mouseMoveEvent(QMouseEvent *event)
mime->setText(QString());
drag->setMimeData(mime);
QPoint p = mapToGlobal(header_rect.topLeft());
drag->setPixmap(screen()->grabWindow(winId(), p.x(), p.y(), header_rect.width(), header_rect.height()));
#if QT_VERSION_MAJOR < 6
drag->setPixmap(screen()->grabWindow(QDeskopWidget().winId(), p.x(), p.y(), header_rect.width(), header_rect.height()));
#else
drag->setPixmap(screen()->grabWindow(0, p.x(), p.y(), header_rect.width(), header_rect.height()));
#endif
drag->setHotSpot(mapToGlobal(pos) - p);
setAcceptDrops(true);

Expand Down

0 comments on commit acfe902

Please sign in to comment.