Commit cfc082e8 authored by Ludovic Fauvet's avatar Ludovic Fauvet
Browse files

Timeline: global context menu support.

parent 7387475c
......@@ -48,6 +48,15 @@ void TracksScene::keyPressEvent( QKeyEvent* keyEvent )
QGraphicsScene::keyPressEvent( keyEvent );
}
void TracksScene::contextMenuEvent( QGraphicsSceneContextMenuEvent* event )
{
QGraphicsScene::contextMenuEvent( event );
if ( event->isAccepted() )
return; // Event handled by an item in the scene.
//TODO Event not handled, create and show a menu here.
}
void TracksScene::askRemoveSelectedItems()
{
TracksView* tv = Timeline::getInstance()->tracksView();
......
......@@ -39,6 +39,7 @@ public:
protected:
virtual void keyPressEvent( QKeyEvent* keyevent );
virtual void contextMenuEvent( QGraphicsSceneContextMenuEvent* event );
};
#endif // TRACKSSCENE_H
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