Gems/EMotionFX/Code/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/Attachments/AttachmentsWindow.cpp
int AttachmentsWindow::GetRowContainingWidget(const QWidget* widget)
    {
        // loop trough the table items and search for widget
        const int numRows = m_tableWidget->rowCount();
        const int numCols = m_tableWidget->columnCount();
        for (int i = 0; i < numRows; ++i)
        {
            for (int j = 0; j < numCols; ++j)
            {
                if (m_tableWidget->cellWidget(i, j) == widget)
                {
                    return i;
                }
            }
        }

        return -1;
    }
// get the row id containing the widget
get the row id containing the widget
get the row id containing the widget
int AttachmentsWindow::GetRowContainingWidget(const QWidget* widget)
    {
        const int numRows = m_tableWidget->rowCount();
        const int numCols = m_tableWidget->columnCount();
        for (int i = 0; i < numRows; ++i)
        {
            for (int j = 0; j < numCols; ++j)
            {
                if (m_tableWidget->cellWidget(i, j) == widget)
                {
                    return i;
                }
            }
        }
        return -1;
    }
int AttachmentsWindow :: GetRowContainingWidget ( const QWidget * widget ) { const int numRows = m_tableWidget -> rowCount ( ) ; const int numCols = m_tableWidget -> columnCount ( ) ; for ( int i = 0 ; i < numRows ; ++ i ) { for ( int j = 0 ; j < numCols ; ++ j ) { if ( m_tableWidget -> cellWidget ( i , j ) == widget ) { return i ; } } } return -1 ; }
get the row id containing the widget
get the row id containing the widget
// loop trough the table items and search for widget