VirtualBox

Changeset 74674 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 8, 2018 12:28:52 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9241: VirtualBox Manager: Details pane: No need for palette stuff in UIDetails class, children will take care of it.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/manager/details
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetails.cpp

    r74109 r74674  
    3939    , m_pDetailsView(0)
    4040{
    41     /* Prepare palette: */
    42     preparePalette();
    43 
    4441    /* Prepare layout: */
    4542    prepareLayout();
     
    5956    /* Propagate to details-model: */
    6057    m_pDetailsModel->setItems(items);
    61 }
    62 
    63 void UIDetails::preparePalette()
    64 {
    65     /* Setup palette: */
    66     setAutoFillBackground(true);
    67     QPalette pal = qApp->palette();
    68     const QColor bodyColor = pal.color(QPalette::Active, QPalette::Mid).lighter(155);
    69     pal.setColor(QPalette::Base, bodyColor);
    70     setPalette(pal);
    7158}
    7259
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetails.h

    r73424 r74674  
    6161
    6262    /* Helpers: Prepare stuff: */
    63     void preparePalette();
    6463    void prepareLayout();
    6564    void prepareModel();
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