LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
LC::ActionInfo Struct Reference

Describes an action exposed in shortcut manager. More...

#include "ihaveshortcuts.h"

+ Collaboration diagram for LC::ActionInfo:

Public Types

using Icon_t = std::variant<Util::Void, QByteArray, QIcon>
 

Public Member Functions

QKeySequences_t GetAllShortcuts () const
 

Public Attributes

QString Text_ {}
 User-visible name of the action.
 
QKeySequence Seq_ {}
 The primary key sequence for this action.
 
Icon_t Icon_ { Util::Void {} }
 Icon of the action, either a QIcon itself or its ActionIcon.
 
QKeySequences_t AdditionalSeqs_ {}
 The additional key sequences for this action.
 

Detailed Description

Describes an action exposed in shortcut manager.

This structure contains information about the action that could be handled by the shortcut manager, like action icon, default key sequences and human-readable description text.

Definition at line 32 of file ihaveshortcuts.h.

Member Typedef Documentation

◆ Icon_t

using LC::ActionInfo::Icon_t = std::variant<Util::Void, QByteArray, QIcon>

Definition at line 40 of file ihaveshortcuts.h.

Member Function Documentation

◆ GetAllShortcuts()

QKeySequences_t LC::ActionInfo::GetAllShortcuts ( ) const
inline

Definition at line 48 of file ihaveshortcuts.h.

References AdditionalSeqs_, and Seq_.

Member Data Documentation

◆ AdditionalSeqs_

QKeySequences_t LC::ActionInfo::AdditionalSeqs_ {}

The additional key sequences for this action.

Definition at line 46 of file ihaveshortcuts.h.

Referenced by GetAllShortcuts(), and LC::Util::ShortcutManager::RegisterGlobalShortcut().

◆ Icon_

Icon_t LC::ActionInfo::Icon_ { Util::Void {} }

Icon of the action, either a QIcon itself or its ActionIcon.

Definition at line 43 of file ihaveshortcuts.h.

◆ Seq_

QKeySequence LC::ActionInfo::Seq_ {}

The primary key sequence for this action.

Definition at line 38 of file ihaveshortcuts.h.

Referenced by GetAllShortcuts(), and LC::Util::ShortcutManager::RegisterGlobalShortcut().

◆ Text_

QString LC::ActionInfo::Text_ {}

User-visible name of the action.

Definition at line 35 of file ihaveshortcuts.h.


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