Gems/EMotionFX/Code/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/ActionHistory/ActionHistoryPlugin.cpp
void ActionHistoryPlugin::OnSelectedItemChanged()
    {
        // Get the list of selected items and make sure exactly one is selected.
        QList<QListWidgetItem*> selected = m_list->selectedItems();
        if (selected.count() != 1)
        {
            return;
        }

        // Get the selected item and its index (row number in the list).
        const uint32 index = m_list->row(selected.at(0));

        // Change the command index.
        m_callback->OnSetCurrentCommand(index);
    }
// Called when the selection changed.
Called when the selection changed.
Called when the selection changed .
void ActionHistoryPlugin::OnSelectedItemChanged()
    {
        QList<QListWidgetItem*> selected = m_list->selectedItems();
        if (selected.count() != 1)
        {
            return;
        }
        const uint32 index = m_list->row(selected.at(0));
        m_callback->OnSetCurrentCommand(index);
    }
void ActionHistoryPlugin :: OnSelectedItemChanged ( ) { QList < QListWidgetItem * > selected = m_list -> selectedItems ( ) ; if ( selected . count ( ) != 1 ) { return ; } const uint32 index = m_list -> row ( selected . at ( 0 ) ) ; m_callback -> OnSetCurrentCommand ( index ) ; }
Called when the selection changed.
Called when the selection changed .
// Get the list of selected items and make sure exactly one is selected. // Get the selected item and its index (row number in the list). // Change the command index.