vastly improved rubberband selection behavior with selection manager widgets

This commit is contained in:
itsmattkc
2023-02-28 20:21:38 -08:00
parent ee666d8862
commit 9ff6e689d6
11 changed files with 80 additions and 28 deletions
+10
View File
@@ -157,6 +157,16 @@ void TimeBasedView::SetViewerNode(ViewerOutput *v)
}
}
QPointF TimeBasedView::ScalePoint(const QPointF &p) const
{
return QPointF(p.x() * GetScale(), p.y() * GetYScale());
}
QPointF TimeBasedView::UnscalePoint(const QPointF &p) const
{
return QPointF(p.x() / GetScale(), p.y() / GetYScale());
}
void TimeBasedView::drawForeground(QPainter *painter, const QRectF &rect)
{
QGraphicsView::drawForeground(painter, rect);