VirtualBox

Changeset 89277 in vbox


Ignore:
Timestamp:
May 25, 2021 3:51:04 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
144623
Message:

FE/Qt: bugref:10003: Force UIWizard to have some style if it isn't initialized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UIWizard.cpp

    r89276 r89277  
    3737void UIWizard::prepare()
    3838{
     39    // WORKAROUND:
     40    // In Qt 5.15 setting fusion application style leaves wizard style undetermined (unset).
     41    // But there is no "unset" enum value, so it's kinda 0, which means QWizard::ClassicStyle.
     42    // But by the fact wizard doesn't get rendered as QWizard::ClassicStyle, layout is broken.
     43    // So, we are forcing QWizard::ClassicStyle ourselves ..
     44    if (wizardStyle() == QWizard::ClassicStyle)
     45        setWizardStyle(QWizard::ClassicStyle);
     46
    3947    /* Translate wizard: */
    4048    retranslateUi();
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