VirtualBox

Changeset 78007 in vbox for trunk


Ignore:
Timestamp:
Apr 3, 2019 5:23:09 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6066: Handle only events sent to required objects and call to base-class afterwards, eventFilter is a virtual function first of all.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPane.cpp

    r76606 r78007  
    324324bool UIPopupPane::eventFilter(QObject *pObject, QEvent *pEvent)
    325325{
     326    /* Handle events for allowed widgets only: */
     327    if (   pObject != this
     328        && pObject != m_pMessagePane
     329        && pObject != m_pButtonPane
     330        && pObject != m_pDetailsPane)
     331        QIWithRetranslateUI<QWidget>::eventFilter(pObject, pEvent);
     332
    326333    /* Depending on event-type: */
    327334    switch (pEvent->type())
     
    391398        default: break;
    392399    }
    393     /* Do not filter anything: */
    394     return false;
     400
     401    /* Call to base-class: */
     402    return QIWithRetranslateUI<QWidget>::eventFilter(pObject, pEvent);
    395403}
    396404
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