VirtualBox

Changeset 99096 in vbox


Ignore:
Timestamp:
Mar 21, 2023 3:54:10 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
156461
Message:

FE/Qt: bugref:10322: Runtime UI: Recording status-bar indicator should be updated directly by recording-change event.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
4 edited

Legend:

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

    r99094 r99096  
    616616        /* Configure connection: */
    617617        connect(pMachine, &UIMachine::sigMachineStateChange,
     618                this, &UIIndicatorRecording::updateAppearance);
     619        connect(pMachine, &UIMachine::sigRecordingChange,
    618620                this, &UIIndicatorRecording::updateAppearance);
    619621        /* Create *enabled* state animation: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineDefs.h

    r99094 r99096  
    4949    UIVisualElement_MouseIntegrationStuff = RT_BIT(1),
    5050    UIVisualElement_IndicatorPoolStuff    = RT_BIT(2),
    51     UIVisualElement_Recording             = RT_BIT(11),
    5251    UIVisualElement_FeaturesStuff         = RT_BIT(12),
    5352#ifndef VBOX_WS_MAC
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp

    r99094 r99096  
    8080
    8181    /* Update indicator-pool and virtualization stuff: */
    82     updateAppearanceOf(UIVisualElement_IndicatorPoolStuff | UIVisualElement_Recording | UIVisualElement_FeaturesStuff);
    83 }
    84 
    85 void UIMachineWindowNormal::sltRecordingChange()
    86 {
    87     /* Update video-capture stuff: */
    88     updateAppearanceOf(UIVisualElement_Recording);
     82    updateAppearanceOf(UIVisualElement_IndicatorPoolStuff | UIVisualElement_FeaturesStuff);
    8983}
    9084
     
    210204
    211205    /* Start watching for console events: */
    212     connect(machineLogic()->uimachine(), &UIMachine::sigRecordingChange,
    213             this, &UIMachineWindowNormal::sltRecordingChange);
    214206    connect(machineLogic()->uimachine(), &UIMachine::sigCPUExecutionCapChange,
    215207            this, &UIMachineWindowNormal::sltCPUExecutionCapChange);
     
    402394{
    403395    /* Stop watching for console events: */
    404     disconnect(machineLogic()->uimachine(), &UIMachine::sigRecordingChange,
    405                this, &UIMachineWindowNormal::sltRecordingChange);
    406396    disconnect(machineLogic()->uimachine(), &UIMachine::sigCPUExecutionCapChange,
    407397               this, &UIMachineWindowNormal::sltCPUExecutionCapChange);
     
    669659                m_pIndicatorsPool->updateAppearance(IndicatorType_Features);
    670660        }
    671         /* If VM is running or paused: */
    672         if (uimachine()->isRunning() || uimachine()->isPaused())
    673         {
    674             if (iElement & UIVisualElement_Recording)
    675                 m_pIndicatorsPool->updateAppearance(IndicatorType_Recording);
    676         }
    677661    }
    678662}
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.h

    r99094 r99096  
    5959    /** Handles machine state change event. */
    6060    void sltMachineStateChanged();
    61     /** Handles recording change event. */
    62     void sltRecordingChange();
    6361    /** Handles CPU execution cap change event. */
    6462    void sltCPUExecutionCapChange();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette