Changeset 80420 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Aug 26, 2019 7:51:16 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 132894
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime/information
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.cpp
r80419 r80420 666 666 { 667 667 int iTextX = m_iMarginLeft + i * iChartWidth / (float) (iXSubAxisCount + 1); 668 QString strCur entSec = QString::number(iTotalSeconds - i * iTotalSeconds / (float)(iXSubAxisCount + 1));669 int iTextWidth = fontMetrics.width(strCur entSec);668 QString strCurrentSec = QString::number(iTotalSeconds - i * iTotalSeconds / (float)(iXSubAxisCount + 1)); 669 int iTextWidth = fontMetrics.width(strCurrentSec); 670 670 if (i == 0) 671 671 { 672 strCur entSec += " " + m_strXAxisLabel;673 painter.drawText(iTextX, height() - m_iMarginBottom + iFontHeight, strCur entSec);672 strCurrentSec += " " + m_strXAxisLabel; 673 painter.drawText(iTextX, height() - m_iMarginBottom + iFontHeight, strCurrentSec); 674 674 } 675 675 else 676 painter.drawText(iTextX - 0.5 * iTextWidth, height() - m_iMarginBottom + iFontHeight, strCur entSec);676 painter.drawText(iTextX - 0.5 * iTextWidth, height() - m_iMarginBottom + iFontHeight, strCurrentSec); 677 677 } 678 678 } … … 967 967 m_strDiskIOInfoLabelReadTotal = QApplication::translate("UIVMInformationDialog", "Total Read"); 968 968 iMaximum = qMax(iMaximum, m_strDiskIOInfoLabelReadTotal.length()); 969 m_strVMExitInfoLabelTitle = QApplication::translate("UIVMInformationDialog", "VM Exits"); 970 iMaximum = qMax(iMaximum, m_strVMExitInfoLabelTitle.length()); 971 m_strVMExitLabelCurrent = QApplication::translate("UIVMInformationDialog", "Current"); 972 iMaximum = qMax(iMaximum, m_strVMExitLabelCurrent.length()); 973 m_strVMExitLabelTotal = QApplication::translate("UIVMInformationDialog", "Total"); 974 iMaximum = qMax(iMaximum, m_strVMExitLabelTotal.length()); 969 975 970 976 … … 1285 1291 { 1286 1292 QString strInfo; 1287 QString strReceiveColor;1288 1293 if (m_infoLabels[m_strCPUMetricName]->isEnabled()) 1289 1294 strInfo = QString("<b>%1</b></b><br/><font color=\"%2\">%3: %4%5</font><br/><font color=\"%6\">%7: %8%9</font>") … … 1428 1433 qulonglong iMaximum = qMax(VMExitMetric.maximum(), iRate); 1429 1434 VMExitMetric.setMaximum(iMaximum); 1435 1436 if (m_infoLabels.contains(m_strVMExitMetricName) && m_infoLabels[m_strVMExitMetricName]) 1437 { 1438 QString strInfo; 1439 if (m_infoLabels[m_strVMExitMetricName]->isEnabled()) 1440 strInfo = QString("<b>%1</b></b><br/>%2: %3 %4<br/>%5: %6 %7") 1441 .arg(m_strVMExitInfoLabelTitle) 1442 .arg(m_strVMExitLabelCurrent).arg(QString::number(iRate)).arg(VMExitMetric.unit()) 1443 .arg(m_strVMExitLabelTotal).arg(QString::number(uTotalVMExits)).arg(VMExitMetric.unit()); 1444 else 1445 strInfo = QString("<b>%1</b><br/>%2%3").arg(m_strVMExitInfoLabelTitle).arg("--").arg("%"); 1446 m_infoLabels[m_strVMExitMetricName]->setText(strInfo); 1447 } 1448 if (m_charts.contains(m_strVMExitMetricName)) 1449 m_charts[m_strVMExitMetricName]->update(); 1430 1450 } 1431 1451 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationRuntime.h
r80419 r80420 221 221 QString m_strDiskIOInfoLabelWrittenTotal; 222 222 QString m_strDiskIOInfoLabelReadTotal; 223 /** VM Exit info label strings. */ 224 QString m_strVMExitInfoLabelTitle; 225 QString m_strVMExitLabelCurrent; 226 QString m_strVMExitLabelTotal; 223 227 /** @} */ 224 228 /** The following string is used while querrying CMachineDebugger. */
Note:
See TracChangeset
for help on using the changeset viewer.