Changeset 80190 in vbox
- Timestamp:
- Aug 7, 2019 7:24:24 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIPerformanceMonitor.cpp
r80188 r80190 660 660 QString strInfo; 661 661 if (m_infoLabels[m_strCPUMetricName]->isEnabled()) 662 strInfo = QString(" %1\n%2%3").arg("CPU Load").arg(QString::number(iLoadPercentage)).arg("%");662 strInfo = QString("<b>%1</b><br/>%2%3").arg("CPU Load").arg(QString::number(iLoadPercentage)).arg("%"); 663 663 else 664 strInfo = QString(" %1\n%2%3").arg("CPU Load").arg("--").arg("%");664 strInfo = QString("<b>%1</b><br/>%2%3").arg("CPU Load").arg("--").arg("%"); 665 665 m_infoLabels[m_strCPUMetricName]->setText(strInfo); 666 666 } … … 678 678 QString strInfo; 679 679 if (m_infoLabels[m_strRAMMetricName]->isEnabled()) 680 strInfo = QString(" %1\n%2: %3\n%4: %5\n%6: %7").arg("RAM Usage").arg("Total").arg(uiCommon().formatSize(_1K * iTotalRAM))680 strInfo = QString("<b>%1</b><br/>%2: %3<br/>%4: %5<br/>%6: %7").arg("RAM Usage").arg("Total").arg(uiCommon().formatSize(_1K * iTotalRAM)) 681 681 .arg("Free:").arg(uiCommon().formatSize(_1K * (iFreeRAM))) 682 682 .arg("Used:").arg(uiCommon().formatSize(_1K * (iTotalRAM - iFreeRAM))); 683 683 else 684 strInfo = QString(" %1\n%2: %3\n%4: %5\n%6: %7").arg("RAM Usage").arg("Total").arg("---").arg("Free").arg("---").arg("Used").arg("---");684 strInfo = QString("<b>%1</b><br/>%2: %3<br/>%4: %5<br/>%6: %7").arg("RAM Usage").arg("Total").arg("---").arg("Free").arg("---").arg("Used").arg("---"); 685 685 m_infoLabels[m_strRAMMetricName]->setText(strInfo); 686 686 } … … 703 703 QString strInfo; 704 704 if (m_infoLabels[m_strNetMetricName]->isEnabled()) 705 strInfo = QString("%1\n%2: %3\n%4: %5\n%6: %7").arg("Network").arg("Receive").arg(uiCommon().formatSize((quint64)iReceiveRate)) 705 strInfo = QString("<b>%1</b></b><br/><font color=\"#FF0000\">%2: %3</font><br/><font color=\"#0000FF\">%4: %5</font><br/>%6: %7").arg("Network") 706 .arg("Receive").arg(uiCommon().formatSize((quint64)iReceiveRate)) 706 707 .arg("Transmit:").arg(uiCommon().formatSize((quint64)iTransmitRate)) 707 708 .arg("Maximum:").arg(uiCommon().formatSize((quint64)iMaximum)); 708 709 else 709 strInfo = QString(" %1\n%2: %3\n%4: %5\n%6: %7").arg("Network").arg("Receieve").arg("---").arg("Transmit").arg("---");710 strInfo = QString("<b>%1</b><br/>%2: %3<br/>%4: %5<br/>%6: %7").arg("Network").arg("Receieve").arg("---").arg("Transmit").arg("---"); 710 711 m_infoLabels[m_strNetMetricName]->setText(strInfo); 711 712 }
Note:
See TracChangeset
for help on using the changeset viewer.