Changeset 6720 in vbox
- Timestamp:
- Feb 1, 2008 2:21:48 PM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/VBoxUI.pro
r6715 r6720 265 265 images/about.png \ 266 266 images/about_tile.png \ 267 images/dock_0.png \268 267 images/dock_1.png \ 269 images/dock_128x128_transparent.png \270 268 images/VirtualBox_48px.png 271 269 -
trunk/src/VBox/Frontends/VirtualBox/src/darwin/VBoxUtils-darwin.cpp
r6715 r6720 105 105 CGImageRef DarwinCreateDockBadge (const char *aSource) 106 106 { 107 /* instead of figuring out how to create a transparent 128x128 pixmap I've 108 just created one that I can load. The Qt gurus can fix this if they like :-) */ 109 QPixmap back (QPixmap::fromMimeSource ("dock_128x128_transparent.png")); 110 Assert (!back.isNull()); 111 Assert (back.width() == 128 && back.height() == 128); 107 /* Create a transparent image in size 128x128. 108 * This is unnecessary complicated in qt3. */ 109 QImage transImage (128, 128, 32); 110 transImage.fill (qRgba (0, 0, 0, 0)); 111 transImage.setAlphaBuffer (true); 112 QPixmap back (transImage); 112 113 113 114 /* load the badge */ … … 121 122 &badge, 0, 0, 122 123 badge.width(), badge.height()); 123 // copyBlt (&back, back.width() - badge.width(), back.height() - badge.height(),124 // &badge, 0, 0,125 // badge.width(), badge.height());126 Assert (!back.isNull());127 Assert (back.width() == 128 && back.height() == 128);128 124 129 125 /* Convert it to a CGImage. */
Note:
See TracChangeset
for help on using the changeset viewer.