VirtualBox

Changeset 71109 in vbox


Ignore:
Timestamp:
Feb 22, 2018 5:00:46 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8694: A bit of improvements for r120971; do not list auto-scaled value if it's equal to 100%; do not add unscaled postfix if auto-scaled postfix is not listed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIActionPoolRuntime.cpp

    r71107 r71109  
    28362836                {
    28372837                    pAction->setProperty("Requested Scale Factor", dScaleFactor);
    2838                     pAction->setText(QApplication::translate("UIActionPool", "Scale to %1% (unscaled output)", "scale-factor")
    2839                                      .arg(dScaleFactor * 100));
     2838                    if (dDevicePixelRatioActual == 1.0)
     2839                        pAction->setText(QApplication::translate("UIActionPool", "Scale to %1%", "scale-factor")
     2840                                         .arg(dScaleFactor * 100));
     2841                    else
     2842                        pAction->setText(QApplication::translate("UIActionPool", "Scale to %1% (unscaled output)", "scale-factor")
     2843                                         .arg(dScaleFactor * 100));
    28402844                }
    28412845                /* For the 'autoscaled' action: */
    2842                 else if ((dScaleFactor >= dDevicePixelRatioActual) && !fDevicePixelRatioMentioned)
     2846                else if (   (dScaleFactor >= dDevicePixelRatioActual)
     2847                         && (dDevicePixelRatioActual != 1.0)
     2848                         && !fDevicePixelRatioMentioned)
    28432849                {
    28442850                    pAction->setProperty("Requested Scale Factor", dDevicePixelRatioActual);
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