VirtualBox

Changeset 88751 in vbox


Ignore:
Timestamp:
Apr 28, 2021 3:46:19 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144079
Message:

FE/Qt: bugref:9378: Chooser pane: HiDPI support for search functionality implemented in r129342.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.cpp

    r86768 r88751  
    3737#include "UIChooserModel.h"
    3838#include "UIChooserNode.h"
     39#include "UIDesktopWidgetWatchdog.h"
    3940#include "UIImageTools.h"
    4041
     
    213214    UIImageTools::blurImage(pixmap.toImage(), resultImage, m_iBlurRadius);
    214215    pixmap.convertFromImage(UIImageTools::toGray(resultImage));
     216    QWidget *pParentWidget = qobject_cast<QWidget*>(parent());
     217    pixmap.setDevicePixelRatio(  pParentWidget
     218                               ? gpDesktop->devicePixelRatioActual(pParentWidget)
     219                               : gpDesktop->devicePixelRatioActual());
    215220    /* Use the filtered pixmap: */
    216221    pPainter->drawPixmap(offset, pixmap);
     
    320325
    321326        /* Allocate the effect instance which we use when the item is marked as disabled: */
    322         m_pDisabledEffect = new UIChooserDisabledItemEffect(1 /* Blur Radius */);
     327        m_pDisabledEffect = new UIChooserDisabledItemEffect(1 /* Blur Radius */, model()->view());
    323328        if (m_pDisabledEffect)
    324329        {
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