VirtualBox

Changeset 102927 in vbox for trunk/src


Ignore:
Timestamp:
Jan 17, 2024 2:48:10 PM (13 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10501. Small improvements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/activity/vmactivity/UIVMActivityMonitor.cpp

    r102906 r102927  
    349349            this, &UIChart::sltCreateContextMenu);
    350350
    351     m_dataSeriesColor[0] = QColor(200, 0, 0, 255);
    352     m_dataSeriesColor[1] = QColor(0, 0, 200, 255);
     351    setDataSeriesColor(0, QColor(200, 0, 0, 255));
     352    setDataSeriesColor(1, QColor(0, 0, 200, 255));
    353353
    354354    m_iMarginLeft = 3 * QFontMetricsF(m_axisFont).averageCharWidth();
     
    12201220    m_strNetworkInfoLabelTransmittedTotal = QApplication::translate("UIVMInformationDialog", "Total Transmitted");
    12211221    m_iMaximumLabelLength = qMax(m_iMaximumLabelLength, m_strNetworkInfoLabelReceivedTotal.length());
    1222     m_strDiskIOInfoLabelTitle = QApplication::translate("UIVMInformationDialog", "Disk IO Rate");
     1222    m_strDiskIOInfoLabelTitle = QApplication::translate("UIVMInformationDialog", "Disk IO");
    12231223    m_iMaximumLabelLength = qMax(m_iMaximumLabelLength, m_strDiskIOInfoLabelTitle.length());
    12241224    m_strDiskIOInfoLabelWritten = QApplication::translate("UIVMInformationDialog", "Write Rate");
     
    18201820    {
    18211821        QString strInfo;
    1822         strInfo = QString("<b>%1</b></b><br/><font color=\"%2\">%3: %4<br/>%5 %6</font><br/><font color=\"%7\">%8: %9<br/>%10 %11</font>")
     1822        strInfo = QString("<b>%1</b></b><br/><font color=\"%2\">%3: %4<br/>%5: %6</font><br/><font color=\"%7\">%8: %9<br/>%10: %11</font>")
    18231823            .arg(m_strNetworkInfoLabelTitle)
    18241824            .arg(dataColorString(Metric_Type_Network_InOut, 0)).arg(m_strNetworkInfoLabelReceived).arg(UITranslator::formatSize(uReceiveRate, g_iDecimalCount))
     
    18521852    if (m_infoLabels.contains(Metric_Type_Disk_InOut)  && m_infoLabels[Metric_Type_Disk_InOut])
    18531853    {
    1854         QString strInfo = QString("<b>%1</b></b><br/><font color=\"%2\">%3: %4<br/>%5 %6</font><br/><font color=\"%7\">%8: %9<br/>%10 %11</font>")
     1854        QString strInfo = QString("<b>%1</b></b><br/><font color=\"%2\">%3: %4<br/>%5: %6</font><br/><font color=\"%7\">%8: %9<br/>%10: %11</font>")
    18551855            .arg(m_strDiskIOInfoLabelTitle)
    18561856            .arg(dataColorString(Metric_Type_Disk_InOut, 0)).arg(m_strDiskIOInfoLabelWritten).arg(UITranslator::formatSize(uWriteRate, g_iDecimalCount))
     
    21592159        pChart->setXAxisLabel(QApplication::translate("UIVMInformationDialog", "Min."));
    21602160
    2161     m_strNetworkInInfoLabelTitle = QApplication::translate("UIVMInformationDialog", "Network Receive Rate");
     2161    m_strNetworkInInfoLabelTitle = QApplication::translate("UIVMInformationDialog", "Network");
    21622162    m_iMaximumLabelLength = qMax(m_iMaximumLabelLength, m_strNetworkInInfoLabelTitle.length());
    21632163
    2164     m_strNetworkOutInfoLabelTitle = QApplication::translate("UIVMInformationDialog", "Network Transmit Rate");
     2164    m_strNetworkOutInfoLabelTitle = QApplication::translate("UIVMInformationDialog", "Network");
    21652165    m_iMaximumLabelLength = qMax(m_iMaximumLabelLength, m_strNetworkOutInfoLabelTitle.length());
    21662166
     
    24522452    }
    24532453
     2454    if (m_charts.contains(Metric_Type_Network_Out) && m_charts[Metric_Type_Network_Out])
     2455        m_charts[Metric_Type_Network_Out]->setDataSeriesColor(0, QColor(0, 0, 200, 255));
     2456
     2457    if (m_charts.contains(Metric_Type_Disk_Out) && m_charts[Metric_Type_Disk_Out])
     2458        m_charts[Metric_Type_Disk_Out]->setDataSeriesColor(0, QColor(0, 0, 200, 255));
     2459
    24542460    QWidget *bottomSpacerWidget = new QWidget(this);
    24552461    bottomSpacerWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
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