VirtualBox

Changeset 99093 in vbox


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

FE/Qt: bugref:10322: Runtime UI: Audio status-bar indicator should be updated directly by audio-change event; Display status-bar indicator is already updated by machine-state-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

    r99092 r99093  
    346346        /* Configure connection: */
    347347        connect(pMachine, &UIMachine::sigMachineStateChange,
     348                this, &UIIndicatorAudio::updateAppearance);
     349        connect(pMachine, &UIMachine::sigAudioAdapterChange,
    348350                this, &UIIndicatorAudio::updateAppearance);
    349351        /* Translate finally: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineDefs.h

    r99092 r99093  
    4949    UIVisualElement_MouseIntegrationStuff = RT_BIT(1),
    5050    UIVisualElement_IndicatorPoolStuff    = RT_BIT(2),
    51     UIVisualElement_AudioStuff            = RT_BIT(6),
    5251    UIVisualElement_USBStuff              = RT_BIT(8),
    5352    UIVisualElement_SharedFolderStuff     = RT_BIT(9),
    54     UIVisualElement_Display               = RT_BIT(10),
    5553    UIVisualElement_Recording             = RT_BIT(11),
    5654    UIVisualElement_FeaturesStuff         = RT_BIT(12),
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp

    r99092 r99093  
    9595}
    9696
    97 void UIMachineWindowNormal::sltAudioAdapterChange()
    98 {
    99     /* Update audio stuff: */
    100     updateAppearanceOf(UIVisualElement_AudioStuff);
    101 }
    102 
    10397void UIMachineWindowNormal::sltSharedFolderChange()
    10498{
     
    238232    connect(machineLogic()->uimachine(), &UIMachine::sigUSBDeviceStateChange,
    239233            this, &UIMachineWindowNormal::sltUSBDeviceStateChange);
    240     connect(machineLogic()->uimachine(), &UIMachine::sigAudioAdapterChange,
    241             this, &UIMachineWindowNormal::sltAudioAdapterChange);
    242234    connect(machineLogic()->uimachine(), &UIMachine::sigSharedFolderChange,
    243235            this, &UIMachineWindowNormal::sltSharedFolderChange);
     
    438430    disconnect(machineLogic()->uimachine(), &UIMachine::sigUSBDeviceStateChange,
    439431               this, &UIMachineWindowNormal::sltUSBDeviceStateChange);
    440     disconnect(machineLogic()->uimachine(), &UIMachine::sigAudioAdapterChange,
    441                this, &UIMachineWindowNormal::sltAudioAdapterChange);
    442432    disconnect(machineLogic()->uimachine(), &UIMachine::sigSharedFolderChange,
    443433               this, &UIMachineWindowNormal::sltSharedFolderChange);
     
    706696        if (uimachine()->isRunning())
    707697        {
    708             if (iElement & UIVisualElement_AudioStuff)
    709                 m_pIndicatorsPool->updateAppearance(IndicatorType_Audio);
    710698            if (iElement & UIVisualElement_USBStuff)
    711699                m_pIndicatorsPool->updateAppearance(IndicatorType_USB);
    712700            if (iElement & UIVisualElement_SharedFolderStuff)
    713701                m_pIndicatorsPool->updateAppearance(IndicatorType_SharedFolders);
    714             if (iElement & UIVisualElement_Display)
    715                 m_pIndicatorsPool->updateAppearance(IndicatorType_Display);
    716702            if (iElement & UIVisualElement_FeaturesStuff)
    717703                m_pIndicatorsPool->updateAppearance(IndicatorType_Features);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.h

    r99092 r99093  
    6363    /** Handles USB device state change event. */
    6464    void sltUSBDeviceStateChange();
    65     /** Handles audio adapter change event. */
    66     void sltAudioAdapterChange();
    6765    /** Handles shared folder change event. */
    6866    void sltSharedFolderChange();
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