VirtualBox

Ignore:
Timestamp:
Jul 8, 2021 12:53:51 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9996: Set focus proxy of the mane and system editor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UINameAndSystemEditor.cpp

    r90093 r90094  
    454454                m_pNameLabel->setBuddy(m_pNameLineEdit);
    455455                m_pMainLayout->addWidget(m_pNameLineEdit, iRow, 1, 1, 2);
    456                 setFocusProxy(m_pNameLineEdit);
    457456            }
    458457
     
    576575             * after all widgets were created: */
    577576            prepareFamilyCombo();
     577        }
     578    }
     579    /* Set top most widget of the 2nd column as focus proxy: */
     580    for (int i = 0; i < m_pMainLayout->rowCount(); ++i)
     581    {
     582        QLayoutItem *pItem = m_pMainLayout->itemAtPosition(i, 1);
     583        if (pItem && pItem->widget())
     584        {
     585            setFocusProxy(pItem->widget());
     586            break;
    578587        }
    579588    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette