|
Albert
|
#include <albert/item.h>
Action used by result items (Item).
Public Member Functions | |
| template<typename T1 = QString, typename T2 = QString, typename T3 = std::function<void()>> | |
| Action (T1 &&id_, T2 &&text_, T3 &&function_, bool hide_on_activation_=true) noexcept | |
| Constructs an Action with the contents initialized with the data passed. | |
Public Attributes | |
| QString | id |
| The identifier. | |
| QString | text |
| The description. | |
| std::function< void()> | function |
| The function executed on activation. | |
| bool | hide_on_activation |
| The activation behavior. | |
|
inlinenoexcept |
Constructs an Action with the contents initialized with the data passed.
| id | The identifier. |
| text | The description. |
| function | The function executed on activation. |
| hideOnActivation | The activation behavior. |
| std::function<void()> albert::Action::function |
The function executed on activation.
| bool albert::Action::hide_on_activation |
The activation behavior.
| QString albert::Action::id |
The identifier.
| QString albert::Action::text |
The description.