VirtualBox

Changeset 99094 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 21, 2023 3:50:28 PM (23 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322: Runtime UI: USB status-bar indicator should be updated directly by controller-change and device-state-change event; Shared Folder status-bar indicator should be updated directly by shared-folder-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

    r99093 r99094  
    453453        connect(pMachine, &UIMachine::sigMachineStateChange,
    454454                this, &UIIndicatorUSB::updateAppearance);
     455        connect(pMachine, &UIMachine::sigUSBControllerChange,
     456                this, &UIIndicatorUSB::updateAppearance);
     457        connect(pMachine, &UIMachine::sigUSBDeviceStateChange,
     458                this, &UIIndicatorUSB::updateAppearance);
    455459        /* Translate finally: */
    456460        retranslateUi();
     
    499503        /* Configure connection: */
    500504        connect(pMachine, &UIMachine::sigMachineStateChange,
     505                this, &UIIndicatorSharedFolders::updateAppearance);
     506        connect(pMachine, &UIMachine::sigSharedFolderChange,
    501507                this, &UIIndicatorSharedFolders::updateAppearance);
    502508        /* Translate finally: */
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineDefs.h

    r99093 r99094  
    4949    UIVisualElement_MouseIntegrationStuff = RT_BIT(1),
    5050    UIVisualElement_IndicatorPoolStuff    = RT_BIT(2),
    51     UIVisualElement_USBStuff              = RT_BIT(8),
    52     UIVisualElement_SharedFolderStuff     = RT_BIT(9),
    5351    UIVisualElement_Recording             = RT_BIT(11),
    5452    UIVisualElement_FeaturesStuff         = RT_BIT(12),
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp

    r99093 r99094  
    8383}
    8484
    85 void UIMachineWindowNormal::sltUSBControllerChange()
    86 {
    87     /* Update USB stuff: */
    88     updateAppearanceOf(UIVisualElement_USBStuff);
    89 }
    90 
    91 void UIMachineWindowNormal::sltUSBDeviceStateChange()
    92 {
    93     /* Update USB stuff: */
    94     updateAppearanceOf(UIVisualElement_USBStuff);
    95 }
    96 
    97 void UIMachineWindowNormal::sltSharedFolderChange()
    98 {
    99     /* Update shared-folders stuff: */
    100     updateAppearanceOf(UIVisualElement_SharedFolderStuff);
    101 }
    102 
    10385void UIMachineWindowNormal::sltRecordingChange()
    10486{
     
    228210
    229211    /* Start watching for console events: */
    230     connect(machineLogic()->uimachine(), &UIMachine::sigUSBControllerChange,
    231             this, &UIMachineWindowNormal::sltUSBControllerChange);
    232     connect(machineLogic()->uimachine(), &UIMachine::sigUSBDeviceStateChange,
    233             this, &UIMachineWindowNormal::sltUSBDeviceStateChange);
    234     connect(machineLogic()->uimachine(), &UIMachine::sigSharedFolderChange,
    235             this, &UIMachineWindowNormal::sltSharedFolderChange);
    236212    connect(machineLogic()->uimachine(), &UIMachine::sigRecordingChange,
    237213            this, &UIMachineWindowNormal::sltRecordingChange);
     
    426402{
    427403    /* Stop watching for console events: */
    428     disconnect(machineLogic()->uimachine(), &UIMachine::sigUSBControllerChange,
    429                this, &UIMachineWindowNormal::sltUSBControllerChange);
    430     disconnect(machineLogic()->uimachine(), &UIMachine::sigUSBDeviceStateChange,
    431                this, &UIMachineWindowNormal::sltUSBDeviceStateChange);
    432     disconnect(machineLogic()->uimachine(), &UIMachine::sigSharedFolderChange,
    433                this, &UIMachineWindowNormal::sltSharedFolderChange);
    434404    disconnect(machineLogic()->uimachine(), &UIMachine::sigRecordingChange,
    435405               this, &UIMachineWindowNormal::sltRecordingChange);
     
    696666        if (uimachine()->isRunning())
    697667        {
    698             if (iElement & UIVisualElement_USBStuff)
    699                 m_pIndicatorsPool->updateAppearance(IndicatorType_USB);
    700             if (iElement & UIVisualElement_SharedFolderStuff)
    701                 m_pIndicatorsPool->updateAppearance(IndicatorType_SharedFolders);
    702668            if (iElement & UIVisualElement_FeaturesStuff)
    703669                m_pIndicatorsPool->updateAppearance(IndicatorType_Features);
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.h

    r99093 r99094  
    5959    /** Handles machine state change event. */
    6060    void sltMachineStateChanged();
    61     /** Handles USB controller change event. */
    62     void sltUSBControllerChange();
    63     /** Handles USB device state change event. */
    64     void sltUSBDeviceStateChange();
    65     /** Handles shared folder change event. */
    66     void sltSharedFolderChange();
    6761    /** Handles recording change event. */
    6862    void sltRecordingChange();
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