- Timestamp:
- Mar 15, 2023 10:39:41 AM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r98978 r98979 770 770 /* Use 20% of the icon width to draw the indicator bar: */ 771 771 painter.drawRect(QRect(QPoint(0.8 * width(), (100 - m_uEffectiveCPULoad) / 100.f * height()), 772 QPoint(width(), 772 QPoint(width(), height()))); 773 773 /* Draw an empty rect. around the CPU load bar: */ 774 774 int iBorderThickness = 1; 775 775 QRect outRect(QPoint(0.8 * width(), 0), 776 776 QPoint(width() - 2 * iBorderThickness, height() - 2 * iBorderThickness)); 777 painter.setPen(QPen(Qt::black, 1)); 777 if (m_pMachine->machineState() == KMachineState_Running) 778 painter.setPen(QPen(Qt::black, 1)); 779 else 780 painter.setPen(QPen(Qt::gray, 1)); 778 781 painter.setBrush(Qt::NoBrush); 779 782 painter.drawRect(outRect);
Note:
See TracChangeset
for help on using the changeset viewer.