- Timestamp:
- Jan 17, 2024 2:48:10 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/activity/vmactivity/UIVMActivityMonitor.cpp
r102906 r102927 349 349 this, &UIChart::sltCreateContextMenu); 350 350 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)); 353 353 354 354 m_iMarginLeft = 3 * QFontMetricsF(m_axisFont).averageCharWidth(); … … 1220 1220 m_strNetworkInfoLabelTransmittedTotal = QApplication::translate("UIVMInformationDialog", "Total Transmitted"); 1221 1221 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"); 1223 1223 m_iMaximumLabelLength = qMax(m_iMaximumLabelLength, m_strDiskIOInfoLabelTitle.length()); 1224 1224 m_strDiskIOInfoLabelWritten = QApplication::translate("UIVMInformationDialog", "Write Rate"); … … 1820 1820 { 1821 1821 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>") 1823 1823 .arg(m_strNetworkInfoLabelTitle) 1824 1824 .arg(dataColorString(Metric_Type_Network_InOut, 0)).arg(m_strNetworkInfoLabelReceived).arg(UITranslator::formatSize(uReceiveRate, g_iDecimalCount)) … … 1852 1852 if (m_infoLabels.contains(Metric_Type_Disk_InOut) && m_infoLabels[Metric_Type_Disk_InOut]) 1853 1853 { 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>") 1855 1855 .arg(m_strDiskIOInfoLabelTitle) 1856 1856 .arg(dataColorString(Metric_Type_Disk_InOut, 0)).arg(m_strDiskIOInfoLabelWritten).arg(UITranslator::formatSize(uWriteRate, g_iDecimalCount)) … … 2159 2159 pChart->setXAxisLabel(QApplication::translate("UIVMInformationDialog", "Min.")); 2160 2160 2161 m_strNetworkInInfoLabelTitle = QApplication::translate("UIVMInformationDialog", "Network Receive Rate");2161 m_strNetworkInInfoLabelTitle = QApplication::translate("UIVMInformationDialog", "Network"); 2162 2162 m_iMaximumLabelLength = qMax(m_iMaximumLabelLength, m_strNetworkInInfoLabelTitle.length()); 2163 2163 2164 m_strNetworkOutInfoLabelTitle = QApplication::translate("UIVMInformationDialog", "Network Transmit Rate");2164 m_strNetworkOutInfoLabelTitle = QApplication::translate("UIVMInformationDialog", "Network"); 2165 2165 m_iMaximumLabelLength = qMax(m_iMaximumLabelLength, m_strNetworkOutInfoLabelTitle.length()); 2166 2166 … … 2452 2452 } 2453 2453 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 2454 2460 QWidget *bottomSpacerWidget = new QWidget(this); 2455 2461 bottomSpacerWidget->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
Note:
See TracChangeset
for help on using the changeset viewer.