VirtualBox

Changeset 74682 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 8, 2018 1:40:59 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9241: VirtualBox Manager: Details pane: No need for palette stuff in UIDetailsView 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/UIDetailsView.cpp

    r74109 r74682  
    121121    QAccessible::installFactory(UIAccessibilityInterfaceForUIDetailsView::pFactory);
    122122
    123     /* Prepare palette: */
    124     preparePalette();
    125 
    126123    /* Setup frame: */
    127124    setFrameShape(QFrame::NoFrame);
     
    178175}
    179176
    180 void UIDetailsView::preparePalette()
    181 {
    182     /* Setup palette: */
    183     QPalette pal = qApp->palette();
    184     const QColor bodyColor = pal.color(QPalette::Active, QPalette::Mid).lighter(155);
    185     pal.setColor(QPalette::Base, bodyColor);
    186     setPalette(pal);
    187 }
    188 
    189177void UIDetailsView::resizeEvent(QResizeEvent *pEvent)
    190178{
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/details/UIDetailsView.h

    r74677 r74682  
    5656    virtual void retranslateUi() /* override */;
    5757
    58     /* Helper: Prepare stuff: */
    59     void preparePalette();
    60 
    6158    /* Handler: Resize-event stuff: */
    6259    void resizeEvent(QResizeEvent *pEvent);
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