Changeset 26119 in vbox
- Timestamp:
- Feb 1, 2010 1:33:15 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIWizard.cpp
r26079 r26119 22 22 23 23 /* Global includes */ 24 #include <QAbstractButton> 24 25 #include <QLayout> 25 26 #include <QTextEdit> … … 60 61 QImage imgWatermark = pixWaterMark.toImage(); 61 62 63 /* Use the right-top watermark pixel as frame color */ 64 QRgb rgbFrame = imgWatermark.pixel(imgWatermark.width() - 1, 0); 65 66 /* Take into account button's height */ 67 int iPageHeight = height() - button(QWizard::CancelButton)->height(); 68 62 69 /* Create final image on the basis of incoming, applying the rules. */ 63 QImage imgWatermarkNew(imgWatermark.width(), qMax(imgWatermark.height(), height()), imgWatermark.format());70 QImage imgWatermarkNew(imgWatermark.width(), qMax(imgWatermark.height(), iPageHeight), imgWatermark.format()); 64 71 for (int y = 0; y < imgWatermarkNew.height(); ++ y) 65 72 { … … 69 76 if (wizardStyle() == QWizard::ClassicStyle && 70 77 (x == 0 || y == 0 || x == imgWatermarkNew.width() - 1 || y == imgWatermarkNew.height() - 1)) 71 imgWatermarkNew.setPixel(x, y, qRgb(0, 0, 0));78 imgWatermarkNew.setPixel(x, y, rgbFrame); 72 79 /* Border rule 2 - draw border for ModernStyle */ 73 80 else if (wizardStyle() == QWizard::ModernStyle && x == imgWatermarkNew.width() - 1) 74 imgWatermarkNew.setPixel(x, y, qRgb(0, 0, 0));81 imgWatermarkNew.setPixel(x, y, rgbFrame); 75 82 /* Horizontal extension rule - use last used color */ 76 83 else if (x >= imgWatermark.width() && y < imgWatermark.height())
Note:
See TracChangeset
for help on using the changeset viewer.