Code/Editor/UndoDropDown.cpp
void UndoStackItemSelectionModel::select(const QModelIndex& index, QItemSelectionModel::SelectionFlags command)
{
    if (!model())
    {
        return;
    }

    if (index.isValid())
    {
        QItemSelectionModel::select({ model()->index(0, 0, {}), index }, command);
    }
    clearCurrentIndex();
}
/////////////////////////////////////////////////////////////////////////////
// Custom selection model we use for the list of undo/redo actions
Custom selection model we use for the list of undo/redo actions
Custom selection model we use for the list of undo / redo actions
void UndoStackItemSelectionModel::select(const QModelIndex& index, QItemSelectionModel::SelectionFlags command)
{
    if (!model())
    {
        return;
    }
    if (index.isValid())
    {
        QItemSelectionModel::select({ model()->index(0, 0, {}), index }, command);
    }
    clearCurrentIndex();
}
void UndoStackItemSelectionModel :: select ( const QModelIndex & index , QItemSelectionModel :: SelectionFlags command ) { if ( ! model ( ) ) { return ; } if ( index . isValid ( ) ) { QItemSelectionModel :: select ( { model ( ) -> index ( 0 , 0 , { } ) , index } , command ) ; } clearCurrentIndex ( ) ; }
Custom selection model we use for the list of undo/redo actions
Custom selection model we use for the list of undo / redo actions