Notification

Search for usage in LXR

Notification Class Reference

Properties

list< Actionactions
 
string iconName
 
string iconSource
 
string message
 
string title
 

Public Member Functions

void dispatch ()
 

Detailed Description

A wrapper for easily composing a notification that can be dispatched.

The notification is dispatched to the current application window overlay area.

Multiple notifications. Different types, with callback actions, only simple text, or more complex.

By default this control will take QQC2 Action as children. For showing the notification just call the function dispatch

Maui.Notification
{
iconName: "dialog-info"
title: i18n("Tagged")
message: i18n("File was tagged successfully")
{
text: "Test"
onTriggered:
{
}
}
}
string title
The title for the notification.
string iconName
The name of the icon to be used.
string message
The body message of the notification.
QString i18n(const char *text, const TYPE &arg...)

Definition at line 34 of file Notification.qml.

Property Documentation

◆ actions

list<Action> Notification::actions
read
Remarks
This is the default property

Definition at line 40 of file Notification.qml.

◆ iconName

string Notification::iconName
read

The name of the icon to be used.

Definition at line 56 of file Notification.qml.

◆ iconSource

string Notification::iconSource
read

The icon from a file source, such as an image to be used.

Definition at line 52 of file Notification.qml.

◆ message

string Notification::message
read

The body message of the notification.

Definition at line 48 of file Notification.qml.

◆ title

string Notification::title
read

The title for the notification.

Definition at line 44 of file Notification.qml.

Member Function Documentation

◆ dispatch()

void Notification::dispatch ( )

Sends the notification to the toast-area to be visible.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 14 2025 11:53:06 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.