Commit 84a6a1bb authored by Ludovic Fauvet's avatar Ludovic Fauvet

Timeline: Change mouse cursor when mouse is over a media

parent 5492f2ad
......@@ -24,9 +24,20 @@
AbstractGraphicsMediaItem::AbstractGraphicsMediaItem() : m_tracksView( NULL )
{
setCursor( Qt::OpenHandCursor );
}
TracksView* AbstractGraphicsMediaItem::tracksView()
{
return m_tracksView;
}
void AbstractGraphicsMediaItem::mousePressEvent( QGraphicsSceneMouseEvent* event )
{
setCursor( Qt::ClosedHandCursor );
}
void AbstractGraphicsMediaItem::mouseReleaseEvent( QGraphicsSceneMouseEvent* event )
{
setCursor( Qt::OpenHandCursor );
}
......@@ -54,6 +54,9 @@ protected:
*/
TracksView* tracksView();
virtual void mousePressEvent( QGraphicsSceneMouseEvent* event );
virtual void mouseReleaseEvent( QGraphicsSceneMouseEvent* event );
private:
/// This pointer will be set when inserted in the tracksView.
TracksView* m_tracksView;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment