VirtualBox

Changeset 45505 in vbox for trunk


Ignore:
Timestamp:
Apr 12, 2013 7:32:41 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Popup-center: Popup-pane: More precise focus handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIPopupCenter.cpp

    r45490 r45505  
    357357                    m_pFrameLayout->addWidget(m_pTextPane);
    358358                    /* Configure label: */
     359                    m_pTextPane->setFocusPolicy(Qt::StrongFocus);
    359360                    m_pTextPane->installEventFilter(pMainFrame);
    360361                    m_pTextPane->setText(m_strMessage);
     
    368369                    /* Configure button-box: */
    369370                    m_pButtonBox->installEventFilter(pMainFrame);
    370                     setFocusProxy(m_pButtonBox);
    371371                    QList<int> activeButtons;
    372372                    m_pButton1 = createButton(m_iButton1);
     
    425425    {
    426426        pButton->setDefault(true);
     427        pButton->setFocusPolicy(Qt::StrongFocus);
     428        setFocusProxy(pButton);
     429        m_pTextPane->setFocusProxy(pButton);
    427430        pButton->setFocus();
    428431    }
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