#include <albert/item.h>
Action used by result items (Item).
|
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.
|
|
|
QString | id |
| The identifier.
|
|
QString | text |
| The description.
|
|
std::function< void()> | function |
| The function executed on activation.
|
|
bool | hide_on_activation |
| The activation behavior.
|
|
◆ Action()
template<typename T1 = QString, typename T2 = QString, typename T3 = std::function<void()>>
albert::Action::Action |
( |
T1 && |
id_, |
|
|
T2 && |
text_, |
|
|
T3 && |
function_, |
|
|
bool |
hide_on_activation_ = true |
|
) |
| |
|
inlinenoexcept |
Constructs an Action with the contents initialized with the data passed.
- Parameters
-
id | The identifier. |
text | The description. |
function | The function executed on activation. |
hideOnActivation | The activation behavior. |
◆ function
std::function<void()> albert::Action::function |
The function executed on activation.
◆ hide_on_activation
bool albert::Action::hide_on_activation |
◆ id
QString albert::Action::id |
◆ text
QString albert::Action::text |
The documentation for this class was generated from the following file:
- workspace/albert/include/albert/item.h