added the QList<QAction*> Applet::contextActions() method. thanks aaron :)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=694540
This commit is contained in:
Sebastian Sauer 2007-07-31 00:20:19 +00:00
parent 7634beebf3
commit d66a988732
2 changed files with 16 additions and 0 deletions

View File

@ -531,6 +531,11 @@ QRectF Applet::boundingRect () const
} }
QList<QAction*> Applet::contextActions()
{
return QList<QAction*>();
}
QColor Applet::color() const QColor Applet::color() const
{ {
// TODO: add more colors for more categories and // TODO: add more colors for more categories and

View File

@ -404,6 +404,17 @@ class PLASMA_EXPORT Applet : public QObject, public Widget
**/ **/
QRectF boundingRect () const; 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: Q_SIGNALS:
/** /**
* Emitted when the applet needs to take (or lose) keyboard focus. * Emitted when the applet needs to take (or lose) keyboard focus.