VirtualBox

Changeset 7236 in vbox


Ignore:
Timestamp:
Mar 3, 2008 12:55:19 PM (17 years ago)
Author:
vboxsync
Message:

Reusing VBoxGlobal.cpp::toString(...) in Info.Dlg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMInformationDlg.ui.h

    r7207 r7236  
    474474
    475475    /* Hard Disk Statistics. */
     476    QString primaryMaster = QString ("%1 %2")
     477        .arg (vboxGlobal().toString (KDiskControllerType_IDE0))
     478        .arg (vboxGlobal().toString (KDiskControllerType_IDE0, 0));
     479    QString primarySlave = QString ("%1 %2")
     480        .arg (vboxGlobal().toString (KDiskControllerType_IDE0))
     481        .arg (vboxGlobal().toString (KDiskControllerType_IDE0, 1));
     482    QString secondarySlave = QString ("%1 %2")
     483        .arg (vboxGlobal().toString (KDiskControllerType_IDE1))
     484        .arg (vboxGlobal().toString (KDiskControllerType_IDE1, 1));
     485
    476486    result += hdrRow.arg ("hd_16px.png").arg (tr ("IDE Hard Disk Statistics"));
    477     result += formatHardDisk (tr ("Primary Master"), KDiskControllerType_IDE0, 0, 0, 1);
     487    result += formatHardDisk (primaryMaster, KDiskControllerType_IDE0, 0, 0, 1);
    478488    result += interline;
    479     result += formatHardDisk (tr ("Primary Slave"), KDiskControllerType_IDE0, 1, 4, 5);
     489    result += formatHardDisk (primarySlave, KDiskControllerType_IDE0, 1, 4, 5);
    480490    result += interline;
    481     result += formatHardDisk (tr ("Secondary Slave"), KDiskControllerType_IDE1, 1, 12, 13);
     491    result += formatHardDisk (secondarySlave, KDiskControllerType_IDE1, 1, 12, 13);
    482492    result += paragraph;
    483493
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