game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
ShortcutCategory Namespace Reference

Predefined shortcut categories. More...

Variables

constexpr const char * GameActions = "Game Actions"
constexpr const char * Global = "Global"
constexpr const char * Navigation = "Navigation"
constexpr const char * Panels = "Panels"
constexpr const char * Tools = "Tools"
constexpr const char * View = "View"

Detailed Description

Predefined shortcut categories.

Plain const char* constants — QString construction at namespace scope is technically a throwing static initialiser (clang-tidy bugprone-throwing-static-initialization), and an exception during static init can't be caught and would call std::terminate. const char* literals don't allocate. Callers using .category(ShortcutCategory::X) implicitly construct a QString at the call site, which is reachable code where any exception is recoverable.

Variable Documentation

◆ GameActions

const char* ShortcutCategory::GameActions = "Game Actions"
inlineconstexpr

Definition at line 79 of file shortcut_manager.h.

Referenced by ShortcutsController::setupKeyboardShortcuts().

◆ Global

const char* ShortcutCategory::Global = "Global"
inlineconstexpr

Definition at line 78 of file shortcut_manager.h.

Referenced by ShortcutsController::setupKeyboardShortcuts().

◆ Navigation

const char* ShortcutCategory::Navigation = "Navigation"
inlineconstexpr

Definition at line 81 of file shortcut_manager.h.

Referenced by ShortcutsController::setupKeyboardShortcuts().

◆ Panels

const char* ShortcutCategory::Panels = "Panels"
inlineconstexpr

Definition at line 82 of file shortcut_manager.h.

Referenced by ShortcutsController::setupKeyboardShortcuts().

◆ Tools

const char* ShortcutCategory::Tools = "Tools"
inlineconstexpr

Definition at line 83 of file shortcut_manager.h.

◆ View

const char* ShortcutCategory::View = "View"
inlineconstexpr

Definition at line 80 of file shortcut_manager.h.

Referenced by ShortcutsController::setupKeyboardShortcuts().