added the QList<QAction*> Applet::contextActions() method. thanks aaron :)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=694540
This commit is contained in:
parent
7634beebf3
commit
d66a988732
@ -531,6 +531,11 @@ QRectF Applet::boundingRect () const
|
||||
|
||||
}
|
||||
|
||||
QList<QAction*> Applet::contextActions()
|
||||
{
|
||||
return QList<QAction*>();
|
||||
}
|
||||
|
||||
QColor Applet::color() const
|
||||
{
|
||||
// TODO: add more colors for more categories and
|
||||
|
11
applet.h
11
applet.h
@ -404,6 +404,17 @@ class PLASMA_EXPORT Applet : public QObject, public Widget
|
||||
**/
|
||||
QRectF boundingRect () const;
|
||||
|
||||
/**
|
||||
* Returns a list of context-related QAction instances.
|
||||
*
|
||||
* This is used e.g. within the \a DesktopView to display a
|
||||
* contextmenu.
|
||||
*
|
||||
* @return A list of actions. The default implementation returns an
|
||||
* empty list.
|
||||
**/
|
||||
virtual QList<QAction*> contextActions();
|
||||
|
||||
Q_SIGNALS:
|
||||
/**
|
||||
* Emitted when the applet needs to take (or lose) keyboard focus.
|
||||
|
Loading…
Reference in New Issue
Block a user