Changeset 7442 in vbox for trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMInformationDlg.ui.h
- Timestamp:
- Mar 13, 2008 2:33:18 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/ui/VBoxVMInformationDlg.ui.h
r7250 r7442 485 485 486 486 /* Hard Disk Statistics. */ 487 QString primaryMaster = QString ("%1 %2") 488 .arg (vboxGlobal().toString (KStorageBus_IDE, 0)) 489 .arg (vboxGlobal().toString (KStorageBus_IDE, 0, 0)); 490 QString primarySlave = QString ("%1 %2") 491 .arg (vboxGlobal().toString (KStorageBus_IDE, 0)) 492 .arg (vboxGlobal().toString (KStorageBus_IDE, 0, 1)); 493 QString secondarySlave = QString ("%1 %2") 494 .arg (vboxGlobal().toString (KStorageBus_IDE, 1)) 495 .arg (vboxGlobal().toString (KStorageBus_IDE, 1, 1)); 496 487 497 result += hdrRow.arg (":/hd_16px.png").arg (tr ("IDE Hard Disk Statistics")); 488 result += formatHardDisk ( tr ("Primary Master"), KDiskControllerType_IDE0, 0, 0, 1);498 result += formatHardDisk (primaryMaster, KStorageBus_IDE, 0, 0, 0, 1); 489 499 result += interline; 490 result += formatHardDisk ( tr ("Primary Slave"), KDiskControllerType_IDE0, 1, 4, 5);500 result += formatHardDisk (primarySlave, KStorageBus_IDE, 0, 1, 4, 5); 491 501 result += interline; 492 result += formatHardDisk ( tr ("Secondary Slave"), KDiskControllerType_IDE1, 1, 12, 13);502 result += formatHardDisk (secondarySlave, KStorageBus_IDE, 1, 1, 12, 13); 493 503 result += paragraph; 494 504 495 505 /* CD/DVD-ROM Statistics. */ 496 506 result += hdrRow.arg (":/cd_16px.png").arg (tr ("CD/DVD-ROM Statistics")); 497 result += formatHardDisk (QString::null /* tr ("Secondary Master") */,498 K DiskControllerType_IDE1, 0, 8, 9);507 result += formatHardDisk (QString::null, 508 KStorageBus_IDE, 1, 0, 8, 9); 499 509 result += paragraph; 500 510 … … 515 525 516 526 QString VBoxVMInformationDlg::formatHardDisk (const QString &aName, 517 K DiskControllerType aType,518 LONG a Slot, int aStart, int aFinish)527 KStorageBus aBus, LONG aChannel, 528 LONG aDevice, int aStart, int aFinish) 519 529 { 520 530 if (mSession.isNull()) … … 525 535 526 536 QString result = aName.isNull() ? QString::null : header.arg (aName); 527 CHardDisk hd = machine.GetHardDisk (a Type, aSlot);528 if (!hd.isNull() || (a Type == KDiskControllerType_IDE1 && aSlot== 0))537 CHardDisk hd = machine.GetHardDisk (aBus, aChannel, aDevice); 538 if (!hd.isNull() || (aBus == KStorageBus_IDE && aChannel == 1 && aDevice == 0)) 529 539 { 530 540 result += composeArticle (QString::null, aStart, aFinish);
Note:
See TracChangeset
for help on using the changeset viewer.