mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-01-09 16:29:25 +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);
|
QKeySequence::fromString(shortcut.shortcut.keyseq, QKeySequence::NativeText);
|
||||||
hk.context = static_cast<Qt::ShortcutContext>(shortcut.shortcut.context);
|
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) {
|
if (hotkey_shortcut) {
|
||||||
hotkey_shortcut->disconnect();
|
hotkey_shortcut->disconnect();
|
||||||
hotkey_shortcut->setKey(hk.keyseq);
|
hotkey_shortcut->setKey(hk.keyseq);
|
||||||
|
@ -656,7 +656,8 @@ void GMainWindow::InitializeHotkeys() {
|
|||||||
// QShortcut Hotkeys
|
// QShortcut Hotkeys
|
||||||
const auto connect_shortcut = [&](const QString& action_name, const auto& function) {
|
const auto connect_shortcut = [&](const QString& action_name, const auto& function) {
|
||||||
const auto* hotkey = hotkey_registry.GetHotkey(main_window, action_name, this);
|
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(hotkey, &QShortcut::activated, this, function);
|
||||||
connect(secondary_hotkey, &QShortcut::activated, this, function);
|
connect(secondary_hotkey, &QShortcut::activated, this, function);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user