VirtualBox

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


Ignore:
Timestamp:
Jan 15, 2025 1:47:00 PM (4 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
166919
Message:

FE/Qt: bugref:10513: Advanced Settings Dialog: Fixing look&feel regression introduced by moving to Qt6.8 / modern style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsSelector.cpp

    r107480 r107781  
    828828    setSizePolicy(QSizePolicy::Minimum, QSizePolicy::MinimumExpanding);
    829829
     830#ifdef VBOX_WS_WIN
     831    // WORKAROUND:
     832    // The call to
     833    // viewport()->setAutoFillBackground(false);
     834    // above is ineffective on new modern Windows theme.
     835    // We'll have to make current color transparent.
     836    QPalette pal = palette();
     837    QColor col = pal.color(QPalette::Base);
     838    col.setAlpha(0);
     839    pal.setColor(QPalette::Base, col);
     840    setPalette(pal);
     841#endif
     842
    830843    /* Prepare selector delegate: */
    831844    UISelectorDelegate *pDelegate = new UISelectorDelegate(this);
Note: See TracChangeset for help on using the changeset viewer.

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