Skip to content

Commit

Permalink
Unbreak timeline delegate in Qt6: re-enable hover events on viewport
Browse files Browse the repository at this point in the history
Apparently the hover events are not emitted for Qt6 on a viewport
by default, so we have to explicitly opt-in to get this behavior.
  • Loading branch information
milianw committed Jul 23, 2023
1 parent 0461871 commit d87af9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/models/timelinedelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ TimeLineDelegate::TimeLineDelegate(FilterAndZoomStack* filterAndZoomStack, QAbst
, m_view(view)
{
m_view->viewport()->installEventFilter(this);
m_view->viewport()->setAttribute(Qt::WA_Hover);

connect(filterAndZoomStack, &FilterAndZoomStack::filterChanged, this, &TimeLineDelegate::updateView);
connect(filterAndZoomStack, &FilterAndZoomStack::zoomChanged, this, &TimeLineDelegate::updateZoomState);
Expand Down

0 comments on commit d87af9f

Please sign in to comment.