VirtualBox

Changeset 7423 in vbox


Ignore:
Timestamp:
Mar 11, 2008 3:51:36 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
28858
Message:

Qt3->Qt4:
Update QLabel picture decoration mechanism.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp

    r7397 r7423  
    24382438    AssertReturnVoid (aLabel);
    24392439
     2440    aLabel->setAlignment (Qt::AlignTop);
     2441    aLabel->setFrameShape (QFrame::Box);
     2442    aLabel->setFrameShadow (QFrame::Plain);
     2443
    24402444    const QPixmap *pix = aLabel->pixmap();
    24412445    QImage img = pix->convertToImage();
     
    24432447    QRgb rgbFrame = img.pixel (img.width() - 1, 0);
    24442448
    2445     aLabel->setAlignment (Qt::AlignTop);
    2446 
    2447     aLabel->setPaletteBackgroundColor (QColor (rgbBack));
    2448     aLabel->setFrameShadow (Q3Frame::Plain);
    2449     aLabel->setFrameShape (Q3Frame::Box);
    2450     aLabel->setPaletteForegroundColor (QColor (rgbFrame));
     2449    QPalette pal = aLabel->palette();
     2450    pal.setColor (QPalette::Window, rgbBack);
     2451    pal.setColor (QPalette::WindowText, rgbFrame);
     2452    aLabel->setPalette (pal);
    24512453}
    24522454
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette