Changeset 88751 in vbox
- Timestamp:
- Apr 28, 2021 3:46:19 PM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 144079
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItem.cpp
r86768 r88751 37 37 #include "UIChooserModel.h" 38 38 #include "UIChooserNode.h" 39 #include "UIDesktopWidgetWatchdog.h" 39 40 #include "UIImageTools.h" 40 41 … … 213 214 UIImageTools::blurImage(pixmap.toImage(), resultImage, m_iBlurRadius); 214 215 pixmap.convertFromImage(UIImageTools::toGray(resultImage)); 216 QWidget *pParentWidget = qobject_cast<QWidget*>(parent()); 217 pixmap.setDevicePixelRatio( pParentWidget 218 ? gpDesktop->devicePixelRatioActual(pParentWidget) 219 : gpDesktop->devicePixelRatioActual()); 215 220 /* Use the filtered pixmap: */ 216 221 pPainter->drawPixmap(offset, pixmap); … … 320 325 321 326 /* 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()); 323 328 if (m_pDisabledEffect) 324 329 {
Note:
See TracChangeset
for help on using the changeset viewer.