VirtualBox

Changeset 62132 in vbox for trunk


Ignore:
Timestamp:
Jul 8, 2016 10:52:03 AM (9 years ago)
Author:
vboxsync
Message:

FE/Qt: OSX: New VD wizard: Workaround for Qt5 slider bug which makes it conflict to a bit large numbers we have for VD size.

File:
1 edited

Legend:

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

    r56180 r62132  
    196196        qulonglong uGap = uTickMBNext - uMaximumMediumSize;
    197197        iSliderScale = (int)((uTickMBNext - uTickMB) / uGap);
     198#ifdef VBOX_WS_MAC
     199        // WORKAROUND:
     200        // There is an issue with Qt5 QSlider under OSX:
     201        // Slider tick count (maximum - minimum) is limited with some
     202        // "magical number" - 588351, having it more than that brings
     203        // unpredictable results like slider token jumping and disappearing,
     204        // so we are limiting tick count by lowering slider-scale 100 times.
     205        iSliderScale /= 100;
     206#endif /* VBOX_WS_MAC */
    198207    }
    199208    return qMax(iSliderScale, 8);
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