Gems/EMotionFX/Code/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/TimeView/TrackDataHeaderWidget.cpp
void TrackDataHeaderWidget::DoRecorderContextMenuEvent(QContextMenuEvent* event)
    {
        // create the context menu
        QMenu menu(this);

        //---------------------
        // Timeline actions
        //---------------------
        QAction* action = menu.addAction("Zoom To Fit All");
        connect(action, &QAction::triggered, m_plugin, &TimeViewPlugin::OnZoomAll);

        action = menu.addAction("Reset Timeline");
        connect(action, &QAction::triggered, m_plugin, &TimeViewPlugin::OnResetTimeline);

        // show the menu at the given position
        menu.exec(event->globalPos());
    }
// context event when recorder has a recording
context event when recorder has a recording
context event when recorder has a recording
void TrackDataHeaderWidget::DoRecorderContextMenuEvent(QContextMenuEvent* event)
    {
        QMenu menu(this);
        QAction* action = menu.addAction("Zoom To Fit All");
        connect(action, &QAction::triggered, m_plugin, &TimeViewPlugin::OnZoomAll);
        action = menu.addAction("Reset Timeline");
        connect(action, &QAction::triggered, m_plugin, &TimeViewPlugin::OnResetTimeline);
        menu.exec(event->globalPos());
    }
void TrackDataHeaderWidget :: DoRecorderContextMenuEvent ( QContextMenuEvent * event ) { QMenu menu ( this ) ; QAction * action = menu . addAction ( " " ) ; connect ( action , & QAction :: triggered , m_plugin , & TimeViewPlugin :: OnZoomAll ) ; action = menu . addAction ( " " ) ; connect ( action , & QAction :: triggered , m_plugin , & TimeViewPlugin :: OnResetTimeline ) ; menu . exec ( event -> globalPos ( ) ) ; }
context event when recorder has a recording
context event when recorder has a recording
// create the context menu //--------------------- // Timeline actions //--------------------- // show the menu at the given position