LeechCraft  0.6.70-16373-g319c272718
Modular cross-platform feature rich live environment.
LC::ActionInfo Struct Reference

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

#include "ihaveshortcuts.h"

+ Collaboration diagram for LC::ActionInfo:

Public Member Functions

QKeySequences_t GetAllShortcuts () const
 

Public Attributes

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

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 Function Documentation

◆ GetAllShortcuts()

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

Definition at line 43 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 41 of file ihaveshortcuts.h.

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

◆ Icon_

std::variant<Util::Void, QByteArray, QIcon> LC::ActionInfo::Icon_ { Util::Void {} }

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

Definition at line 39 of file ihaveshortcuts.h.

◆ Seq_

QKeySequence LC::ActionInfo::Seq_ {}

The primary key sequence for this action.

Definition at line 37 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: