KNotificationAction Class
This class represents an action in a notification. More...
| Header: | #include <KNotification> |
| CMake: | find_package(KF6 REQUIRED COMPONENTS Notifications)target_link_libraries(mytarget PRIVATE KF6::Notifications) |
| Since: | 6.0 |
| Inherits: | QObject |
Properties
- label : QString
Public Functions
| KNotificationAction(const QString &label) | |
| QString | label() const |
| void | setLabel(const QString &label) |
Signals
| void | activated() |
| void | labelChanged(const QString &label) |
Detailed Description
This can be a button on the notification popup, or triggered by clicking the notification popup itself.
Property Documentation
label : QString
Access functions:
Notifier signal:
| void | labelChanged(const QString &label) |
Member Function Documentation
[explicit] KNotificationAction::KNotificationAction(const QString &label)
Creates an action with given label
label The label for the action
[signal] void KNotificationAction::activated()
Emitted when the user activates the action
QString KNotificationAction::label() const
The user-facing label for the action
Note: Getter function for property label.
See also setLabel().
[signal] void KNotificationAction::labelChanged(const QString &label)
Emitted when label changed.
Note: Notifier signal for property label.
void KNotificationAction::setLabel(const QString &label)
Set the user-facing label for the action
Note: Setter function for property label.
See also label().