VirtualBox

Ignore:
Timestamp:
Nov 24, 2008 6:44:17 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
39829
Message:

FE/Qt4: FormatSize function reworked, warning about too low memory for seamless updated to use integer format of size instead of decimal.

Location:
trunk/src/VBox/Frontends/VirtualBox4/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxDefs.h

    r14509 r14540  
    124124    };
    125125
     126    /** Size formatting types. */
     127    enum FormatSize
     128    {
     129        FormatSize_Round,
     130        FormatSize_RoundDown,
     131        FormatSize_RoundUp
     132    };
     133
    126134    static const char* GUI_LastWindowPosition;
    127135    static const char* GUI_LastWindowPosition_Max;
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxGlobal.h

    r14511 r14540  
    844844
    845845    static quint64 parseSize (const QString &);
    846     static QString formatSize (quint64, int aMode = 0);
     846    static QString formatSize (quint64 aSize, uint aDecimal = 2,
     847                               VBoxDefs::FormatSize aMode = VBoxDefs::FormatSize_Round);
    847848
    848849    static quint64 requiredVideoMemory (CMachine *aMachine = 0);
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