VirtualBox

Changeset 9796 in vbox


Ignore:
Timestamp:
Jun 18, 2008 3:45:49 PM (17 years ago)
Author:
vboxsync
Message:

FE/Qt4: respect SH_ItemView_ChangeHighlightOnFocus (fix wrong text color of selected item if the selector hasn't the focus)

File:
1 edited

Legend:

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

    r9773 r9796  
    796796    QPalette pal = option.palette;
    797797    QPen pen = pal.color (QPalette::Active, QPalette::Text);
    798     if (option.state & QStyle::State_Selected)
     798    if (option.state & QStyle::State_Selected &&
     799        (option.state & QStyle::State_HasFocus ||
     800        QApplication::style()->styleHint (QStyle::SH_ItemView_ChangeHighlightOnFocus, &option) == 0))
    799801        pen =  pal.color (QPalette::Active, QPalette::HighlightedText);
    800802    /* Start drawing */
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