VirtualBox

Changeset 7227 in vbox


Ignore:
Timestamp:
Feb 29, 2008 5:47:23 PM (17 years ago)
Author:
vboxsync
Message:

FE/Qt4: Replaced QColorGroup with QPalette to let it start in the Selector mode.

File:
1 edited

Legend:

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

    r7220 r7227  
    701701    }
    702702
    703     const QColorGroup &cg = lb->activeColorGroup();
     703    const QPalette &pal = lb->palette();
    704704
    705705    int osTypeY = marg;
     
    712712    aP->drawPixmap (marg, osTypeY, pmOSType);
    713713
    714     aP->setPen (isSelected() ? cg.highlightedText() : cg.text());
     714    aP->setPen (isSelected() ?
     715                pal.color (QPalette::Active, QPalette::HighlightedText) :
     716                pal.color (QPalette::Active, QPalette::Text));
    715717
    716718    int textX = marg + pmOSType.width() + marg * 3 / 2;
Note: See TracChangeset for help on using the changeset viewer.

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