MauiKit Controls
23#include <QQmlListProperty>
28class NotifyAction :
public QObject
32 Q_DISABLE_COPY(NotifyAction)
34 Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
38 void setText(
const QString &text);
45 void triggered(Notify* notify);
57 Q_DISABLE_COPY(Notify)
59 Q_PROPERTY(
QString componentName READ componentName WRITE setComponentName NOTIFY componentNameChanged)
63 Q_PROPERTY(
QString iconName READ iconName WRITE setIconName NOTIFY iconNameChanged)
65 Q_PROPERTY(
QUrl imageSource READ imageSource WRITE setImageSource NOTIFY imageSourceChanged)
67 Q_PROPERTY(NotifyAction * defaultAction READ defaultAction WRITE setDefaultAction NOTIFY defaulActionChanged)
75 void appendAction(NotifyAction*);
76 int actionsCount()
const;
77 NotifyAction *action(
int)
const;
79 void replaceAction(
int, NotifyAction*);
80 void removeLastAction();
82 const QString &componentName()
const;
83 void setComponentName(
const QString &newComponentName);
86 void setEventId(
const QString &newEventId);
89 void setTitle(
const QString &newTitle);
92 void setMessage(
const QString &newMessage);
94 const QString &iconName()
const;
95 void setIconName(
const QString &newIconName);
97 const QUrl &imageSource()
const;
98 void setImageSource(
const QUrl &newImageSource);
100 NotifyAction *defaultAction()
const;
101 void setDefaultAction(NotifyAction *newDefaultAction);
107 void actionActivated(
int index);
114 void componentNameChanged(
QString);
122 void imageSourceChanged(
QUrl);
124 void defaulActionChanged();
138 NotifyAction * m_defaultAction;
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 14 2025 11:49:07 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.