Changeset 75156 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 29, 2018 3:55:39 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.cpp
r75154 r75156 22 22 /* Qt includes: */ 23 23 # include <QGraphicsScene> 24 # include <QGraphicsSceneMouseEvent> 24 25 # include <QGraphicsView> 25 26 # include <QPainter> 26 27 # include <QStyleOptionGraphicsItem> 27 # include <Q GraphicsSceneMouseEvent>28 # include <QWindow> 28 29 29 30 /* GUI includes: */ … … 498 499 { 499 500 /* Ask item to paint itself into pixmap: */ 500 const QSize actualSize = size().toSize(); 501 QPixmap pixmap(actualSize); 501 qreal dDpr = gpManager->windowHandle()->devicePixelRatio(); 502 QSize actualSize = size().toSize(); 503 QPixmap pixmap(actualSize * dDpr); 504 pixmap.setDevicePixelRatio(dDpr); 502 505 QPainter painter(&pixmap); 503 506 QStyleOptionGraphicsItem options;
Note:
See TracChangeset
for help on using the changeset viewer.