Gems/Camera/Code/Source/ViewportCameraSelectorWindow.cpp
QModelIndex ViewportCameraSelectorWindow::moveCursor(CursorAction cursorAction, [[maybe_unused]] Qt::KeyboardModifiers modifiers)
        {
            switch (cursorAction)
            {
            case CursorAction::MoveUp:
            {
                return GetPreviousIndex();
            }
            case CursorAction::MoveDown:
            {
                return GetNextIndex();
            }
            case CursorAction::MoveNext:
            {
                return GetNextIndex();
            }
            case CursorAction::MovePrevious:
            {
                return GetPreviousIndex();
            }
            default:
                return currentIndex();
            }
        }
// handle up/down arrows to make a circular list
handle up/down arrows to make a circular list
handle up / down arrows to make a circular list
QModelIndex ViewportCameraSelectorWindow::moveCursor(CursorAction cursorAction, [[maybe_unused]] Qt::KeyboardModifiers modifiers)
        {
            switch (cursorAction)
            {
            case CursorAction::MoveUp:
            {
                return GetPreviousIndex();
            }
            case CursorAction::MoveDown:
            {
                return GetNextIndex();
            }
            case CursorAction::MoveNext:
            {
                return GetNextIndex();
            }
            case CursorAction::MovePrevious:
            {
                return GetPreviousIndex();
            }
            default:
                return currentIndex();
            }
        }
QModelIndex ViewportCameraSelectorWindow :: moveCursor ( CursorAction cursorAction , [[ maybe_unused ]] Qt :: KeyboardModifiers modifiers ) { switch ( cursorAction ) { case CursorAction :: MoveUp : { return GetPreviousIndex ( ) ; } case CursorAction :: MoveDown : { return GetNextIndex ( ) ; } case CursorAction :: MoveNext : { return GetNextIndex ( ) ; } case CursorAction :: MovePrevious : { return GetPreviousIndex ( ) ; } default : return currentIndex ( ) ; } }
handle up/down arrows to make a circular list
handle up / down arrows to make a circular list