Changeset 59106 in vbox for trunk/src/VBox
- Timestamp:
- Dec 11, 2015 4:36:55 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/darwin/VBoxUtils-darwin.cpp
r59105 r59106 30 30 #include <QPixmap> 31 31 #include <QContextMenuEvent> 32 #if QT_VERSION >= 0x050000 33 # include <QtMac> 34 #endif /* QT_VERSION >= 0x050000 */ 32 35 33 36 #include <Carbon/Carbon.h> … … 326 329 kCGImageAlphaPremultipliedFirst); 327 330 /* Get the CGImageRef from Qt */ 331 #if QT_VERSION < 0x050000 328 332 CGImageRef qtPixmap = pPixmap->toMacCGImageRef(); 333 #else /* QT_VERSION >= 0x050000 */ 334 CGImageRef qtPixmap = QtMac::toCGImageRef(*pPixmap); 335 #endif /* QT_VERSION >= 0x050000 */ 329 336 /* Draw the image from Qt & convert the context back to a new CGImageRef. */ 330 337 CGContextDrawImage(ctx, CGRectMake(0, 0, pPixmap->width(), pPixmap->height()), qtPixmap);
Note:
See TracChangeset
for help on using the changeset viewer.