diff --git a/applet.cpp b/applet.cpp index a2571265f..7e066b3b7 100644 --- a/applet.cpp +++ b/applet.cpp @@ -531,6 +531,11 @@ QRectF Applet::boundingRect () const } +QList Applet::contextActions() +{ + return QList(); +} + QColor Applet::color() const { // TODO: add more colors for more categories and diff --git a/applet.h b/applet.h index 39864100d..e17ee7bed 100644 --- a/applet.h +++ b/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 contextActions(); + Q_SIGNALS: /** * Emitted when the applet needs to take (or lose) keyboard focus.