documentation++

warning people not to assume Applet::view() returns a view, because null pointer crashes make me sad :(


svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=872326
This commit is contained in:
Chani Armitage 2008-10-16 21:40:21 +00:00
parent bba4ea355b
commit 4f776b73c1

View File

@ -200,7 +200,10 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
const Package *package() const;
/**
* Returns the view this widget is visible on
* Returns the view this widget is visible on, or 0 if none can be found.
* @warning do NOT assume this will always return a view!
* a null view probably means that either plasma isn't finished loading, or your applet is
* on an activity that's not being shown anywhere.
*/
QGraphicsView *view() const;