KNotificationAction Class
This class represents an action in a notification. This class was introduced in Qt 6.0. More...
- Header:
#include <KNotification> - Since: Qt 6.0
- CMake:
find_package(KF6 REQUIRED COMPONENTS Notifications)
target_link_libraries(mytarget PRIVATE KF6::Notifications) - Inherits: QObject
List of all members, including inherited members
Properties
Public Functions
Signals
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:
voidlabelChanged(constQString&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()