VirtualBox

Changeset 103161 in vbox


Ignore:
Timestamp:
Feb 1, 2024 1:01:02 PM (8 months ago)
Author:
vboxsync
Message:

FE/Qt: Cleanup for UIDefs.h: Moving FormatSize enum to appropriate place.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h

    r102503 r103161  
    7373        ShowWindowEventType,
    7474#endif
    75     };
    76 
    77     /** Size formatting types. */
    78     enum FormatSize
    79     {
    80         FormatSize_Round,
    81         FormatSize_RoundDown,
    82         FormatSize_RoundUp
    8375    };
    8476
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UITranslator.h

    r98103 r103161  
    4545
    4646public:
     47
     48    /** Size formatting types. */
     49    enum FormatSize
     50    {
     51        FormatSize_Round,
     52        FormatSize_RoundDown,
     53        FormatSize_RoundUp
     54    };
    4755
    4856    /** Loads the language by language ID.
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r101717 r103161  
    644644                message.second << tr("The virtual machine is currently assigned less than <b>%1</b> of video memory "
    645645                                     "which is the minimum amount required to switch to full-screen or seamless mode.")
    646                                      .arg(UITranslator::formatSize(uNeedBytes, 0, FormatSize_RoundUp));
     646                                     .arg(UITranslator::formatSize(uNeedBytes, 0, UITranslator::FormatSize_RoundUp));
    647647            }
    648648#ifdef VBOX_WITH_3D_ACCELERATION
     
    656656                                         "and the operating system hint is set to Windows Vista or later. "
    657657                                         "For best performance you should set the machine's video memory to at least <b>%1</b>.")
    658                                          .arg(UITranslator::formatSize(uNeedBytes, 0, FormatSize_RoundUp));
     658                                         .arg(UITranslator::formatSize(uNeedBytes, 0, UITranslator::FormatSize_RoundUp));
    659659                }
    660660            }
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