Open 3D Engine AzQtComponents API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AzQtComponents::ShortcutDispatchTraits Class Reference

#include <ShortcutDispatch.h>

Inherits AZ::EBusTraits.

Public Types

using Bus = AZ::EBus< ShortcutDispatchTraits >
 
using BusIdType = QWidget *
 

Public Member Functions

virtual QWidget * GetShortcutDispatchScopeRoot (QWidget *)
 

Static Public Attributes

static const AZ::EBusHandlerPolicy HandlerPolicy = AZ::EBusHandlerPolicy::Single
 
static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::ById
 

Detailed Description

The ShortcutDispatcBus is intended to allow systems to hook in and override providing a valid keyboard shortcut scopeRoot. GraphCanvas uses sub-systems of Qt which don't play well with the regular Qt widget hierarchy and as a result, some widgets which should have parents don't.

Member Function Documentation

◆ GetShortcutDispatchScopeRoot()

virtual QWidget * AzQtComponents::ShortcutDispatchTraits::GetShortcutDispatchScopeRoot ( QWidget *  )
inlinevirtual

Sent when the Editor's shortcut dispatcher can't find a parent for the given focus widget. Specifically used for GraphCanvas widgets, as they don't have parents and aren't part of the regular Qt hierarchy.


The documentation for this class was generated from the following file: