KStatusNotifierItem
kstatusnotifieritem.h
452 void showMessage(const QString &title, const QString &message, const QString &icon, int timeout = 10000);
476 * @param pos if it's a valid position it represents the mouse coordinates when the event was triggered
KDE Status notifier Item protocol implementation
Definition kstatusnotifieritem.h:66
void setStatus(const ItemStatus status)
Sets a new status for this icon.
Definition kstatusnotifieritem.cpp:114
ItemCategory
Different kinds of applications announce their type to the systemtray, so can be drawn in a different...
Definition kstatusnotifieritem.h:103
@ ApplicationStatus
An icon for a normal application, can be seen as its taskbar entry. This is the default value.
Definition kstatusnotifieritem.h:105
@ Hardware
This application shows hardware status or a means to control it.
Definition kstatusnotifieritem.h:114
@ SystemServices
This is a system service, it can show itself in the system tray if it requires interaction from the u...
Definition kstatusnotifieritem.h:112
@ Communications
This is a communication oriented application; this icon will be used for things such as the notificat...
Definition kstatusnotifieritem.h:108
void setAttentionIconByName(const QString &name)
Sets a new icon that should be used when the application wants to request attention (usually the syst...
Definition kstatusnotifieritem.cpp:239
void activateRequested(bool active, const QPoint &pos)
Inform the host application that an activation has been requested, for instance left mouse click,...
void setToolTipIconByName(const QString &name)
Set a new icon for the toolTip.
Definition kstatusnotifieritem.cpp:374
void setToolTipSubTitle(const QString &subTitle)
Sets a new subtitle for the toolTip.
Definition kstatusnotifieritem.cpp:431
ItemStatus
All the possible status this icon can have, depending on the importance of the events that happens in...
Definition kstatusnotifieritem.h:87
@ Active
The application is doing something, or it is important that the icon is always reachable from the use...
Definition kstatusnotifieritem.h:92
@ NeedsAttention
The application requests the attention of the user, for instance battery running out or a new IM mess...
Definition kstatusnotifieritem.h:95
@ Passive
Nothing is happening in the application, so showing this icon is not required. This is the default va...
Definition kstatusnotifieritem.h:89
void setIconByName(const QString &name)
Sets a new main icon for the system tray.
Definition kstatusnotifieritem.cpp:133
void scrollRequested(int delta, Qt::Orientation orientation)
Inform the host application that the mouse wheel (or another mean of scrolling that the visualization...
void setCategory(const ItemCategory category)
Sets the category for this icon, usually it's needed to call this function only once.
Definition kstatusnotifieritem.cpp:94
void setTitle(const QString &title)
Sets a title for this icon.
Definition kstatusnotifieritem.cpp:109
KStatusNotifierItem(QObject *parent=nullptr)
Construct a new status notifier item.
Definition kstatusnotifieritem.cpp:59
void secondaryActivateRequested(const QPoint &pos)
Alternate activate action, for instance right mouse click, but this is not guaranteed since it's depe...
void setToolTipTitle(const QString &title)
Sets a new title for the toolTip.
Definition kstatusnotifieritem.cpp:412
void setOverlayIconByName(const QString &name)
Sets an icon to be used as overlay for the main one.
Definition kstatusnotifieritem.cpp:180
Q_SCRIPTABLE CaptureState status()
QObject(QObject *parent)
Q_ENUM(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
virtual bool event(QEvent *e)
virtual bool eventFilter(QObject *watched, QEvent *event)
Orientation
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 11:54:50 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 31 2025 11:54:50 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.