VirtualBox

Changeset 77044 in vbox


Ignore:
Timestamp:
Jan 30, 2019 2:18:45 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128487
Message:

FE/Qt: bugref:6699: Give the focus to user name line edit as the session panel becomes visible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerSessionPanel.cpp

    r76950 r77044  
    5656protected:
    5757
    58     void retranslateUi();
    59     void keyPressEvent(QKeyEvent * pEvent);
     58    void retranslateUi() /* override */;
     59    void keyPressEvent(QKeyEvent * pEvent) /* override */;
     60    void showEvent(QShowEvent *pEvent) /* override */;
    6061
    6162private slots:
     
    187188}
    188189
     190void UIGuestSessionCreateWidget::showEvent(QShowEvent *pEvent)
     191{
     192    QIWithRetranslateUI<QWidget>::showEvent(pEvent);
     193    if (m_pUserNameEdit)
     194        m_pUserNameEdit->setFocus();
     195}
     196
    189197void UIGuestSessionCreateWidget::switchSessionCreateMode()
    190198{
Note: See TracChangeset for help on using the changeset viewer.

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