Gems/EMotionFX/Code/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/Attachments/AttachmentsWindow.cpp
void AttachmentsWindow::OnSelectNodeButtonClicked()
    {
        // get the sender widget
        QLabel* widget = (QLabel*)(QWidget*)sender();
        if (widget == nullptr)
        {
            return;
        }

        // select the clicked row
        const int row = GetRowContainingWidget(widget);
        if (row != -1)
        {
            m_tableWidget->selectRow(row);
        }

        m_nodeBeforeSelectionWindow = GetSelectedNodeName();

        // show the node selection window
        m_nodeSelectionWindow->Update(m_actorInstance->GetID());
        m_nodeSelectionWindow->show();
    }
// open the node selection dialog for the node
open the node selection dialog for the node
open the node selection dialog for the node
void AttachmentsWindow::OnSelectNodeButtonClicked()
    {
        QLabel* widget = (QLabel*)(QWidget*)sender();
        if (widget == nullptr)
        {
            return;
        }
        const int row = GetRowContainingWidget(widget);
        if (row != -1)
        {
            m_tableWidget->selectRow(row);
        }
        m_nodeBeforeSelectionWindow = GetSelectedNodeName();
        m_nodeSelectionWindow->Update(m_actorInstance->GetID());
        m_nodeSelectionWindow->show();
    }
void AttachmentsWindow :: OnSelectNodeButtonClicked ( ) { QLabel * widget = ( QLabel * ) ( QWidget * ) sender ( ) ; if ( widget == nullptr ) { return ; } const int row = GetRowContainingWidget ( widget ) ; if ( row != -1 ) { m_tableWidget -> selectRow ( row ) ; } m_nodeBeforeSelectionWindow = GetSelectedNodeName ( ) ; m_nodeSelectionWindow -> Update ( m_actorInstance -> GetID ( ) ) ; m_nodeSelectionWindow -> show ( ) ; }
open the node selection dialog for the node
open the node selection dialog for the node
// get the sender widget // select the clicked row // show the node selection window