mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-01-08 08:00:39 +01:00
Corrected code formatting
This commit is contained in:
parent
aae84524eb
commit
ddd832104c
@ -33,7 +33,7 @@ void HotkeyRegistry::LoadHotkeys() {
|
||||
QKeySequence::fromString(shortcut.shortcut.keyseq, QKeySequence::NativeText);
|
||||
hk.context = static_cast<Qt::ShortcutContext>(shortcut.shortcut.context);
|
||||
}
|
||||
for(auto const& [_, hotkey_shortcut] : hk.shortcuts) {
|
||||
for (auto const& [_, hotkey_shortcut] : hk.shortcuts) {
|
||||
if (hotkey_shortcut) {
|
||||
hotkey_shortcut->disconnect();
|
||||
hotkey_shortcut->setKey(hk.keyseq);
|
||||
|
@ -656,7 +656,8 @@ void GMainWindow::InitializeHotkeys() {
|
||||
// QShortcut Hotkeys
|
||||
const auto connect_shortcut = [&](const QString& action_name, const auto& function) {
|
||||
const auto* hotkey = hotkey_registry.GetHotkey(main_window, action_name, this);
|
||||
const auto* secondary_hotkey = hotkey_registry.GetHotkey(main_window, action_name, secondary_window);
|
||||
const auto* secondary_hotkey =
|
||||
hotkey_registry.GetHotkey(main_window, action_name, secondary_window);
|
||||
connect(hotkey, &QShortcut::activated, this, function);
|
||||
connect(secondary_hotkey, &QShortcut::activated, this, function);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user