Changeset 99096 in vbox
- Timestamp:
- Mar 21, 2023 3:54:10 PM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 156461
- 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 616 616 /* Configure connection: */ 617 617 connect(pMachine, &UIMachine::sigMachineStateChange, 618 this, &UIIndicatorRecording::updateAppearance); 619 connect(pMachine, &UIMachine::sigRecordingChange, 618 620 this, &UIIndicatorRecording::updateAppearance); 619 621 /* Create *enabled* state animation: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineDefs.h
r99094 r99096 49 49 UIVisualElement_MouseIntegrationStuff = RT_BIT(1), 50 50 UIVisualElement_IndicatorPoolStuff = RT_BIT(2), 51 UIVisualElement_Recording = RT_BIT(11),52 51 UIVisualElement_FeaturesStuff = RT_BIT(12), 53 52 #ifndef VBOX_WS_MAC -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.cpp
r99094 r99096 80 80 81 81 /* 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); 89 83 } 90 84 … … 210 204 211 205 /* Start watching for console events: */ 212 connect(machineLogic()->uimachine(), &UIMachine::sigRecordingChange,213 this, &UIMachineWindowNormal::sltRecordingChange);214 206 connect(machineLogic()->uimachine(), &UIMachine::sigCPUExecutionCapChange, 215 207 this, &UIMachineWindowNormal::sltCPUExecutionCapChange); … … 402 394 { 403 395 /* Stop watching for console events: */ 404 disconnect(machineLogic()->uimachine(), &UIMachine::sigRecordingChange,405 this, &UIMachineWindowNormal::sltRecordingChange);406 396 disconnect(machineLogic()->uimachine(), &UIMachine::sigCPUExecutionCapChange, 407 397 this, &UIMachineWindowNormal::sltCPUExecutionCapChange); … … 669 659 m_pIndicatorsPool->updateAppearance(IndicatorType_Features); 670 660 } 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 }677 661 } 678 662 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/normal/UIMachineWindowNormal.h
r99094 r99096 59 59 /** Handles machine state change event. */ 60 60 void sltMachineStateChanged(); 61 /** Handles recording change event. */62 void sltRecordingChange();63 61 /** Handles CPU execution cap change event. */ 64 62 void sltCPUExecutionCapChange();
Note:
See TracChangeset
for help on using the changeset viewer.