Obsolete Members for KStatusNotifierItem
The following members of class KStatusNotifierItem are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
(since 5.12, deprecated in 6.6) QAction * | action(const QString &name) const |
(deprecated in 6.6) QList<QAction *> | actionCollection() const |
(deprecated in 6.6) void | addAction(const QString &name, QAction *action) |
(deprecated in 6.6) void | removeAction(const QString &name) |
Member Function Documentation
[since 5.12, deprecated in 6.6]
QAction *KStatusNotifierItem::action(const QString &name) const
This function is deprecated since 6.6. We strongly advise against using it in new code.
Retrieves an action from the action collection by the action name.
name the name of the action to retrieve
Read actions using contextMenu(). For controlling the behavior of the Quit action use quitRequested() and abortQuit()
This function was introduced in 5.12.
[deprecated in 6.6]
QList<QAction *> KStatusNotifierItem::actionCollection() const
This function is deprecated since 6.6. We strongly advise against using it in new code.
All the actions present in the menu.
Read actions using contextMenu() instead.
[deprecated in 6.6]
void KStatusNotifierItem::addAction(const QString &name, QAction *action)
This function is deprecated since 6.6. We strongly advise against using it in new code.
Adds an action to the actionCollection().
name the name of the action
action the action we want to add
Add actions using contextMenu() instead.
[deprecated in 6.6]
void KStatusNotifierItem::removeAction(const QString &name)
This function is deprecated since 6.6. We strongly advise against using it in new code.
Removes an action from the collection.
name the name of the action
Remove actions using contextMenu() instead.