VirtualBox

Changeset 42828 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Aug 15, 2012 3:52:16 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: 6234: Support for VM groups: Highlighted chooser-items (selected) are now using highlighted-text color for text-painting routines.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemGroup.cpp

    r42796 r42828  
    12051205    int iFullHeaderHeight = data(GroupItemData_FullHeaderSize).toSize().height();
    12061206
     1207    /* Update palette: */
     1208    if (model()->selectionList().contains(this))
     1209    {
     1210        QPalette pal = palette();
     1211        pPainter->setPen(pal.color(QPalette::HighlightedText));
     1212    }
     1213
    12071214    /* Update buttons: */
    12081215    if (m_pToggleButton)
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/chooser/UIGChooserItemMachine.cpp

    r42795 r42828  
    543543    {
    544544        /* Highlight color: */
    545         QColor highlight = pal.color(QPalette::Active, QPalette::Highlight);
     545        QColor highlight = pal.color(QPalette::Highlight);
    546546
    547547        /* Calculate top rectangle: */
     
    656656    QSize machineStatePixmapSize = data(MachineItemData_StatePixmapSize).toSize();
    657657    QSize machineStateTextSize = data(MachineItemData_StateTextSize).toSize();
     658
     659    /* Update palette: */
     660    if (model()->selectionList().contains(this))
     661    {
     662        QPalette pal = palette();
     663        pPainter->setPen(pal.color(QPalette::HighlightedText));
     664    }
    658665
    659666    /* Calculate indents: */
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