VirtualBox

Changeset 99107 in vbox for trunk


Ignore:
Timestamp:
Mar 22, 2023 9:24:13 AM (19 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10322: Runtime UI: Audio and Features status-bar indicators still need to handle UIMachine init since some of data being updated on that trigger, not on machine-state-change; A bit of indicator-pool cleanup besides that.

File:
1 edited

Legend:

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

    r99097 r99107  
    180180        setStateIcon(KDeviceActivity_Null,    UIIconPool::iconSet(":/hd_disabled_16px.png"));
    181181        /* Configure connection: */
    182         connect(pMachine, &UIMachine::sigMachineStateChange,
     182        connect(m_pMachine, &UIMachine::sigMachineStateChange,
    183183                this, &UIIndicatorHardDrive::updateAppearance);
    184         connect(pMachine, &UIMachine::sigStorageDeviceChange,
     184        connect(m_pMachine, &UIMachine::sigStorageDeviceChange,
    185185                this, &UIIndicatorHardDrive::updateAppearance);
    186         connect(pMachine, &UIMachine::sigMediumChange,
     186        connect(m_pMachine, &UIMachine::sigMediumChange,
    187187                this, &UIIndicatorHardDrive::updateAppearance);
    188188        /* Translate finally: */
     
    232232        setStateIcon(KDeviceActivity_Null,    UIIconPool::iconSet(":/cd_disabled_16px.png"));
    233233        /* Configure connection: */
    234         connect(pMachine, &UIMachine::sigMachineStateChange,
     234        connect(m_pMachine, &UIMachine::sigMachineStateChange,
    235235                this, &UIIndicatorOpticalDisks::updateAppearance);
    236         connect(pMachine, &UIMachine::sigStorageDeviceChange,
     236        connect(m_pMachine, &UIMachine::sigStorageDeviceChange,
    237237                this, &UIIndicatorOpticalDisks::updateAppearance);
    238         connect(pMachine, &UIMachine::sigMediumChange,
     238        connect(m_pMachine, &UIMachine::sigMediumChange,
    239239                this, &UIIndicatorOpticalDisks::updateAppearance);
    240240        /* Translate finally: */
     
    284284        setStateIcon(KDeviceActivity_Null,    UIIconPool::iconSet(":/fd_disabled_16px.png"));
    285285        /* Configure connection: */
    286         connect(pMachine, &UIMachine::sigMachineStateChange,
     286        connect(m_pMachine, &UIMachine::sigMachineStateChange,
    287287                this, &UIIndicatorFloppyDisks::updateAppearance);
    288         connect(pMachine, &UIMachine::sigStorageDeviceChange,
     288        connect(m_pMachine, &UIMachine::sigStorageDeviceChange,
    289289                this, &UIIndicatorFloppyDisks::updateAppearance);
    290         connect(pMachine, &UIMachine::sigMediumChange,
     290        connect(m_pMachine, &UIMachine::sigMediumChange,
    291291                this, &UIIndicatorFloppyDisks::updateAppearance);
    292292        /* Translate finally: */
     
    345345        setStateIcon(AudioState_AllOn, UIIconPool::iconSet(":/audio_16px.png"));
    346346        /* Configure connection: */
    347         connect(pMachine, &UIMachine::sigMachineStateChange,
     347        connect(m_pMachine, &UIMachine::sigMachineStateChange,
    348348                this, &UIIndicatorAudio::updateAppearance);
    349         connect(pMachine, &UIMachine::sigAudioAdapterChange,
     349        connect(m_pMachine, &UIMachine::sigInitialized,
     350                this, &UIIndicatorAudio::updateAppearance);
     351        connect(m_pMachine, &UIMachine::sigAudioAdapterChange,
    350352                this, &UIIndicatorAudio::updateAppearance);
    351353        /* Translate finally: */
     
    451453        setStateIcon(KDeviceActivity_Null,    UIIconPool::iconSet(":/usb_disabled_16px.png"));
    452454        /* Configure connection: */
    453         connect(pMachine, &UIMachine::sigMachineStateChange,
     455        connect(m_pMachine, &UIMachine::sigMachineStateChange,
    454456                this, &UIIndicatorUSB::updateAppearance);
    455         connect(pMachine, &UIMachine::sigUSBControllerChange,
     457        connect(m_pMachine, &UIMachine::sigUSBControllerChange,
    456458                this, &UIIndicatorUSB::updateAppearance);
    457         connect(pMachine, &UIMachine::sigUSBDeviceStateChange,
     459        connect(m_pMachine, &UIMachine::sigUSBDeviceStateChange,
    458460                this, &UIIndicatorUSB::updateAppearance);
    459461        /* Translate finally: */
     
    502504        setStateIcon(KDeviceActivity_Null,    UIIconPool::iconSet(":/sf_disabled_16px.png"));
    503505        /* Configure connection: */
    504         connect(pMachine, &UIMachine::sigMachineStateChange,
     506        connect(m_pMachine, &UIMachine::sigMachineStateChange,
    505507                this, &UIIndicatorSharedFolders::updateAppearance);
    506         connect(pMachine, &UIMachine::sigSharedFolderChange,
     508        connect(m_pMachine, &UIMachine::sigSharedFolderChange,
    507509                this, &UIIndicatorSharedFolders::updateAppearance);
    508510        /* Translate finally: */
     
    552554        setStateIcon(DisplayState_Hardware,    UIIconPool::iconSet(":/display_hardware_16px.png"));
    553555        /* Configure connection: */
    554         connect(pMachine, &UIMachine::sigMachineStateChange,
     556        connect(m_pMachine, &UIMachine::sigMachineStateChange,
    555557                this, &UIIndicatorDisplay::updateAppearance);
    556558        /* Translate finally: */
     
    615617        setStateIcon(RecordingState_Paused,      UIIconPool::iconSet(":/movie_reel_16px.png"));
    616618        /* Configure connection: */
    617         connect(pMachine, &UIMachine::sigMachineStateChange,
     619        connect(m_pMachine, &UIMachine::sigMachineStateChange,
    618620                this, &UIIndicatorRecording::updateAppearance);
    619         connect(pMachine, &UIMachine::sigRecordingChange,
     621        connect(m_pMachine, &UIMachine::sigRecordingChange,
    620622                this, &UIIndicatorRecording::updateAppearance);
    621623        /* Create *enabled* state animation: */
     
    747749        connect(m_pMachine, &UIMachine::sigMachineStateChange,
    748750                this, &UIIndicatorFeatures::sltHandleMachineStateChange);
     751        connect(m_pMachine, &UIMachine::sigInitialized,
     752                this, &UIIndicatorFeatures::updateAppearance);
    749753        connect(m_pMachine, &UIMachine::sigCPUExecutionCapChange,
    750754                this, &UIIndicatorFeatures::updateAppearance);
     
    939943        setStateIcon(15, UIIconPool::iconSet(":/hostkey_captured_pressed_checked_16px.png"));
    940944        /* Configure connection: */
    941         connect(pMachine, &UIMachine::sigKeyboardStateChange,
     945        connect(m_pMachine, &UIMachine::sigKeyboardStateChange,
    942946                this, static_cast<void(UIIndicatorKeyboard::*)(int)>(&UIIndicatorKeyboard::setState));
    943947        /* Translate finally: */
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