Changeset 6789 in vbox
- Timestamp:
- Feb 4, 2008 4:33:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMInformationDlg.ui.h
r6728 r6789 412 412 413 413 QString table = "<p><table border=0 cellspacing=0 cellpadding=0 width=100%>%1</table></p>"; 414 QString hdrRow = "<tr><td align=left><img src='%1'></td><td colspan= 2><b>%2</b></td></tr>";415 QString bdyRow = "<tr><td></td><td><nobr>%1</nobr></td><td width=100%><nobr>%2</nobr></td></tr>";416 QString paragraph = "<tr><td colspan= 3></td></tr>";417 QString interline = "<tr><td colspan= 3><font size=1> </font></td></tr>";414 QString hdrRow = "<tr><td align=left><img src='%1'></td><td colspan=3><b>%2</b></td></tr>"; 415 QString bdyRow = "<tr><td></td><td><nobr>%1</nobr></td><td colspan=2><nobr>%2</nobr></td></tr>"; 416 QString paragraph = "<tr><td colspan=4></td></tr>"; 417 QString interline = "<tr><td colspan=4><font size=1> </font></td></tr>"; 418 418 QString result; 419 419 … … 437 437 438 438 /* Hard Disk Statistics. */ 439 result += hdrRow.arg ("hd_16px.png").arg (tr (" Hard DisksStatistics"));439 result += hdrRow.arg ("hd_16px.png").arg (tr ("IDE Hard Disk Statistics")); 440 440 result += formatHardDisk (tr ("Primary Master"), CEnums::IDE0Controller, 0, 0, 1); 441 441 result += interline; 442 442 result += formatHardDisk (tr ("Primary Slave"), CEnums::IDE0Controller, 1, 4, 5); 443 443 result += interline; 444 result += formatHardDisk (tr ("Secondary Master"), CEnums::IDE1Controller, 0, 8, 9);445 result += interline;446 444 result += formatHardDisk (tr ("Secondary Slave"), CEnums::IDE1Controller, 1, 12, 13); 445 result += paragraph; 446 447 /* CD/DVD-ROM Statistics. */ 448 result += hdrRow.arg ("cd_16px.png").arg (tr ("CD/DVD-ROM Statistics")); 449 result += formatHardDisk (QString::null /* tr ("Secondary Master") */, 450 CEnums::IDE1Controller, 0, 8, 9); 447 451 result += paragraph; 448 452 … … 469 473 return QString::null; 470 474 471 QString header = "<tr><td></td><td colspan= 2><nobr><u>%1</u></nobr></td></tr>";475 QString header = "<tr><td></td><td colspan=3><nobr><u>%1</u></nobr></td></tr>"; 472 476 CMachine machine = mSession.GetMachine(); 473 477 474 QString result = header.arg (aName);478 QString result = aName.isNull() ? QString::null : header.arg (aName); 475 479 CHardDisk hd = machine.GetHardDisk (aType, aSlot); 476 480 if (!hd.isNull() || (aType == CEnums::IDE1Controller && aSlot == 0)) … … 492 496 return QString::null; 493 497 494 QString header = "<tr><td></td><td colspan= 2><nobr><u>%1</u></nobr></td></tr>";498 QString header = "<tr><td></td><td colspan=3><nobr><u>%1</u></nobr></td></tr>"; 495 499 CMachine machine = mSession.GetMachine(); 496 500 … … 507 511 int aStart, int aFinish) 508 512 { 509 QString body = "<tr><td></td><td><nobr>%1</nobr></td><td width=100%><nobr>%2</nobr></td></tr>";513 QString body = "<tr><td></td><td><nobr>%1</nobr></td><td align=right><nobr>%2%3</nobr></td><td width=100%></td></tr>"; 510 514 511 515 QString result; 512 516 513 517 if (aStart == -1 && aFinish == -1) 514 result += body.arg (aUnits).arg (QString::null) ;518 result += body.arg (aUnits).arg (QString::null).arg (QString::null); 515 519 else for (int id = aStart; id <= aFinish; ++ id) 516 520 { … … 518 522 if (mValuesMap.contains (mNamesMap.keys() [id])) 519 523 { 520 line = line.arg (mNamesMap.values() [id]);521 524 ULONG64 value = mValuesMap.values() [id].toULongLong(); 525 line = line.arg (mNamesMap.values() [id]) 526 .arg (QString ("%L1").arg (value)); 522 527 line = aUnits.isNull() ? 523 line.arg (QString ("%L1").arg (value)) : 524 line.arg (QString ("%L1 %2").arg (value).arg (aUnits)); 528 line.arg (QString ("<img src=tpixel.png width=%1 height=1>") 529 .arg (QApplication::fontMetrics().width (" B"))) : 530 line.arg (QString (" %1").arg (aUnits)); 525 531 } 526 532 result += line;
Note:
See TracChangeset
for help on using the changeset viewer.