VirtualBox

Changeset 80190 in vbox


Ignore:
Timestamp:
Aug 7, 2019 7:24:24 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref: 9510: Some polishing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIPerformanceMonitor.cpp

    r80188 r80190  
    660660        QString strInfo;
    661661        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("%");
    663663        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("%");
    665665        m_infoLabels[m_strCPUMetricName]->setText(strInfo);
    666666    }
     
    678678        QString strInfo;
    679679        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))
    681681                .arg("Free:").arg(uiCommon().formatSize(_1K * (iFreeRAM)))
    682682                .arg("Used:").arg(uiCommon().formatSize(_1K * (iTotalRAM - iFreeRAM)));
    683683        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("---");
    685685        m_infoLabels[m_strRAMMetricName]->setText(strInfo);
    686686    }
     
    703703        QString strInfo;
    704704        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))
    706707                .arg("Transmit:").arg(uiCommon().formatSize((quint64)iTransmitRate))
    707708                .arg("Maximum:").arg(uiCommon().formatSize((quint64)iMaximum));
    708709        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("---");
    710711        m_infoLabels[m_strNetMetricName]->setText(strInfo);
    711712    }
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