Qt/Hotkeys: Implement "Load from File" / "Save from File" hotkeys
This commit is contained in:
parent
9cfcbfacbe
commit
32382438be
|
@ -483,6 +483,12 @@ void HotkeyScheduler::Run()
|
|||
|
||||
if (IsHotkey(HK_UNDO_SAVE_STATE))
|
||||
emit StateSaveUndo();
|
||||
|
||||
if (IsHotkey(HK_LOAD_STATE_FILE))
|
||||
emit StateLoadFile();
|
||||
|
||||
if (IsHotkey(HK_SAVE_STATE_FILE))
|
||||
emit StateSaveFile();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -38,6 +38,8 @@ signals:
|
|||
void StateSaveSlot(int state);
|
||||
void StateLoadLastSaved(int state);
|
||||
void StateSaveOldest();
|
||||
void StateLoadFile();
|
||||
void StateSaveFile();
|
||||
void StateLoadUndo();
|
||||
void StateSaveUndo();
|
||||
void StartRecording();
|
||||
|
|
|
@ -413,6 +413,8 @@ void MainWindow::ConnectHotkeys()
|
|||
connect(m_hotkey_scheduler, &HotkeyScheduler::StateSaveUndo, this, &MainWindow::StateSaveUndo);
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::StateSaveOldest, this,
|
||||
&MainWindow::StateSaveOldest);
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::StateSaveFile, this, &MainWindow::StateSave);
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::StateLoadFile, this, &MainWindow::StateLoad);
|
||||
|
||||
connect(m_hotkey_scheduler, &HotkeyScheduler::StateLoadSlotHotkey, this,
|
||||
&MainWindow::StateLoadSlot);
|
||||
|
|
Loading…
Reference in New Issue