VirtualBox

Changeset 93368 in vbox for trunk


Ignore:
Timestamp:
Jan 20, 2022 5:22:28 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: UINotificationCenter: Small workaround for masked widget artifacts in running VM (NOT paused) case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.cpp

    r93366 r93368  
    761761void UINotificationCenter::setAnimatedValue(int iValue)
    762762{
     763    /* Store recent value: */
    763764    m_iAnimatedValue = iValue;
     765
     766    // WORKAROUND:
     767    // Hide items if they are masked anyway.
     768    // This actually shouldn't be necessary but
     769    // *is* required to avoid painting artifacts.
     770    foreach (QWidget *pItem, m_items.values())
     771        pItem->setVisible(animatedValue());
     772
     773    /* Adjust geometry: */
    764774    adjustGeometry();
    765775}
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