|
LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
|
Central registry of user-customizable keyboard shortcuts. More...
#include "Error.hpp"#include "Result.hpp"#include <QKeySequence>#include <QString>#include <string>#include <variant>#include <vector>

Go to the source code of this file.
Classes | |
| struct | ui::qt::ShortcutInfo |
| Snapshot of a single registered shortcut, for display/editing. More... | |
| class | ui::qt::ShortcutManager |
| struct | ui::qt::ShortcutManager::Entry |
Namespaces | |
| namespace | ui |
| namespace | ui::qt |
Typedefs | |
| using | ui::qt::ShortcutResult = util::Result< std::monostate, error::Error > |
Central registry of user-customizable keyboard shortcuts.
Menu-building code (MainWindow::SetupMenus()) calls Register() right after creating each QAction that carries an application shortcut. The manager applies any previously-saved custom shortcut immediately, and later lets ShortcutsDialog list, edit, and reset shortcuts through GetAll() / SetShortcut() / ResetToDefault().
Overrides are persisted as <appdata>/keybindings.json, a flat map of shortcut id to key sequence string. Only entries that differ from their default are stored.