| 761 | } |
| 762 | |
| 763 | void MacroActionHotkeyEdit::UpdateEntryData() |
| 764 | { |
| 765 | if (!_entryData) { |
| 766 | return; |
| 767 | } |
| 768 | |
| 769 | _actionType->setCurrentIndex(static_cast<int>(_entryData->_action)); |
| 770 | _hotkeyType->setCurrentIndex(static_cast<int>(_entryData->_hotkeyType)); |
| 771 | RepopulateOBSHotkeySelection(); |
| 772 | _obsHotkeys->setCurrentText( |
| 773 | getHotkeyDescriptionByName(_entryData->_hotkeyName)); |
| 774 | _keys->setCurrentIndex(static_cast<int>(_entryData->_key)); |
| 775 | _leftShift->setChecked(_entryData->_leftShift); |
| 776 | _rightShift->setChecked(_entryData->_rightShift); |
| 777 | _leftCtrl->setChecked(_entryData->_leftCtrl); |
| 778 | _rightCtrl->setChecked(_entryData->_rightCtrl); |
| 779 | _leftAlt->setChecked(_entryData->_leftAlt); |
| 780 | _rightAlt->setChecked(_entryData->_rightAlt); |
| 781 | _leftMeta->setChecked(_entryData->_leftMeta); |
| 782 | _rightMeta->setChecked(_entryData->_rightMeta); |
| 783 | _duration->SetDuration(_entryData->_duration); |
| 784 | _onlySendToOBS->setChecked(_entryData->_onlySendToObs || |
| 785 | !CanSimulateKeyPresses()); |
| 786 | SetWidgetVisibility(); |
| 787 | } |
| 788 | |
| 789 | void MacroActionHotkeyEdit::LShiftChanged(int state) |
| 790 | { |
nothing calls this directly
no test coverage detected