VirtualBox

Ignore:
Timestamp:
Oct 23, 2023 2:55:47 PM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159635
Message:

FE/Qt: bugref:10513: UISettingsSelector: Adjusting pixmap dpr acquiring policy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSelector.cpp

    r101422 r101558  
    517517    , m_pRootItem(new UISelectorTreeViewItem(pParentTree))
    518518{
     519    AssertPtr(m_pParentTree);
    519520}
    520521
     
    623624                const QIcon icon = pItem->icon();
    624625                const int iIconSize = data(specifiedIndex, R_IconSize).toInt();
    625                 const double fDpr = gpDesktop->devicePixelRatio(m_pParentTree);
     626                const qreal fDpr = m_pParentTree->window() && m_pParentTree->window()->windowHandle()
     627                                 ? m_pParentTree->window()->windowHandle()->devicePixelRatio() : 1;
    626628                return icon.pixmap(QSize(iIconSize, iIconSize), fDpr);
    627629            }
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