Changeset 99071 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 20, 2023 4:21:45 PM (21 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r98984 r99071 929 929 setStateIcon(15, UIIconPool::iconSet(":/hostkey_captured_pressed_checked_16px.png")); 930 930 /* Configure connection: */ 931 connect(pMachine, &UIMachine::sigInitialized,932 this, &UIIndicatorKeyboard::sltFetchState);933 931 connect(pMachine, &UIMachine::sigKeyboardStateChange, 934 932 this, static_cast<void(UIIndicatorKeyboard::*)(int)>(&UIIndicatorKeyboard::setState)); … … 957 955 setToolTip(strToolTip.arg(strFullData)); 958 956 } 959 960 private slots:961 962 /** Fetches the keyboard-state from machine UI. */963 void sltFetchState() { setState(m_pMachine->keyboardState()); }964 957 }; 965 958 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.cpp
r98984 r99071 908 908 void UIKeyboardHandler::sltMachineStateChanged() 909 909 { 910 /* Get previous and cached machine states: */ 911 const KMachineState enmPreviousState = uimachine()->machineStatePrevious(); 910 /* Get cached machine states: */ 912 911 const KMachineState enmState = uimachine()->machineState(); 913 912 914 913 /* Notify all the listeners that machine state was [de]initialized: */ 915 if ( enm PreviousState == KMachineState_Null916 || enmState == KMachineState_ Null)914 if ( enmState == KMachineState_Null 915 || enmState == KMachineState_Starting) 917 916 emit sigStateChange(state()); 918 917
Note:
See TracChangeset
for help on using the changeset viewer.