VirtualBox

Changeset 104642 in vbox


Ignore:
Timestamp:
May 15, 2024 1:44:49 PM (7 months ago)
Author:
vboxsync
Message:

FE/Qt. bugref:9510. Adding an extra data since we may want to see VM exits chart in release builds as well.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
5 edited

Legend:

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

    r104621 r104642  
    4545#include "UICommon.h"
    4646#include "UIConverter.h"
     47#include "UIExtraDataManager.h"
    4748#include "UIGlobalSession.h"
    4849#include "UIIconPool.h"
     
    14801481#ifdef DEBUG
    14811482    chartOrder << Metric_Type_VM_Exits;
     1483#else
     1484    if (gEDataManager->VMActivityMonitorShowVMExits())
     1485        chartOrder << Metric_Type_VM_Exits;
    14821486#endif
    14831487    int iRow = 0;
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp

    r104450 r104642  
    269269const char *UIExtraDataDefs::GUI_VMActivityOverview_ShowAllMachines = "GUI/VMActivityOverviewShowAllMachines";
    270270const char *UIExtraDataDefs::GUI_VMActivityMonitor_DataSeriesColors = "GUI/VMActivityMonitorDataSeriesColors";
    271 
     271const char *UIExtraDataDefs::GUI_VMActivityMonitor_ShowVMExits = "GUI/VMActivityMonitorShowVMExits";
    272272const char *UIExtraDataDefs::GUI_MediumSelector_DialogGeometry = "GUI/MediumSelector/DialogGeometry";
    273273
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h

    r104450 r104642  
    477477        SHARED_LIBRARY_STUFF extern const char *GUI_VMActivityOverview_ShowAllMachines;
    478478        SHARED_LIBRARY_STUFF extern const char *GUI_VMActivityMonitor_DataSeriesColors;
     479        SHARED_LIBRARY_STUFF extern const char *GUI_VMActivityMonitor_ShowVMExits;
    479480    /** @} */
    480481
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp

    r104586 r104642  
    48084808}
    48094809
     4810bool UIExtraDataManager::VMActivityMonitorShowVMExits()
     4811{
     4812    return isFeatureAllowed(GUI_VMActivityMonitor_ShowVMExits);
     4813}
     4814
     4815void UIExtraDataManager::setVMActivityMonitorShowVMExits(bool fShow)
     4816{
     4817    setExtraDataString(GUI_VMActivityMonitor_ShowVMExits, toFeatureAllowed(fShow));
     4818}
     4819
    48104820QRect UIExtraDataManager::mediumSelectorDialogGeometry(QWidget *pWidget, QWidget *pParentWidget, const QRect &defaultGeometry)
    48114821{
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h

    r104450 r104642  
    876876        void setVMActivityMonitorDataSeriesColors(const QStringList &colorList);
    877877        QStringList VMActivityMonitorDataSeriesColors();
     878        bool VMActivityMonitorShowVMExits();
     879        void setVMActivityMonitorShowVMExits(bool fShow);
    878880    /** @} */
    879881
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