VirtualBox

Changeset 98979 in vbox for trunk/src


Ignore:
Timestamp:
Mar 15, 2023 10:39:41 AM (23 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322: Runtime UI: Small fix for features indicator of UIIndicatorsPool; Black frame around CPU status only for running VM, gray otherwise.

File:
1 edited

Legend:

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

    r98978 r98979  
    770770        /* Use 20% of the icon width to draw the indicator bar: */
    771771        painter.drawRect(QRect(QPoint(0.8 * width(), (100 - m_uEffectiveCPULoad) / 100.f * height()),
    772                                QPoint(width(),  height())));
     772                               QPoint(width(), height())));
    773773        /* Draw an empty rect. around the CPU load bar: */
    774774        int iBorderThickness = 1;
    775775        QRect outRect(QPoint(0.8 * width(), 0),
    776776                      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));
    778781        painter.setBrush(Qt::NoBrush);
    779782        painter.drawRect(outRect);
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