- Timestamp:
- Nov 19, 2010 1:17:33 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 67936
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMListView.cpp
r34108 r34196 584 584 2 * margin + osTypeSize.height() + space + nameSize.height()); 585 585 QImage image(s, QImage::Format_ARGB32); 586 image.fill(Q t::transparent);586 image.fill(QColor(Qt::transparent).rgba()); 587 587 QPainter p(&image); 588 588 p.setRenderHint(QPainter::Antialiasing); 589 589 p.setPen(QPen(Qt::white, 2)); 590 p.setBrush(QColor( qRgb(80, 80, 80)));590 p.setBrush(QColor(80, 80, 80)); 591 591 p.drawRoundedRect(3, 3, s.width() - 3 * 2, s.height() - 3 * 2, 6, 6); 592 592 p.drawPixmap((s.width() - osTypeSize.width()) / 2, margin, osType); … … 594 594 p.setFont(font()); 595 595 p.drawText(QRect(margin, margin + osTypeSize.height() + space, s.width() - 2 * margin, nameSize.height()), Qt::AlignCenter, name); 596 QImage p1(s, QImage::Format_ARGB32);597 p1.fill(qRgba(0, 0, 0, 177));598 596 p.setCompositionMode(QPainter::CompositionMode_DestinationIn); 599 p.drawImage(0, 0, p1); 600 p.end(); 597 p.fillRect(image.rect(), QColor(0, 0, 0, 177)); 601 598 return QPixmap::fromImage(image); 602 599 }
Note:
See TracChangeset
for help on using the changeset viewer.