VirtualBox

Changeset 72888 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jul 4, 2018 4:05:12 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123433
Message:

FE/Qt: bugref:8694: Adjust icons when moving GUI between screen with different DPI: QIStatusBarIndicator.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIStatusBarIndicator.cpp

    r71900 r72888  
    119119{
    120120    if (m_icons.contains(m_iState))
    121         pPainter->drawPixmap(contentsRect().topLeft(), m_icons.value(m_iState).pixmap(m_size));
     121    {
     122        if (window())
     123            pPainter->drawPixmap(contentsRect().topLeft(), m_icons.value(m_iState).pixmap(window()->windowHandle(), m_size));
     124        else
     125            pPainter->drawPixmap(contentsRect().topLeft(), m_icons.value(m_iState).pixmap(m_size));
     126    }
    122127}
    123128
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