Make the local co-ordinate system clearer.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=692598
This commit is contained in:
parent
19a46e2c40
commit
b7187ab807
5
applet.h
5
applet.h
@ -177,6 +177,11 @@ class PLASMA_EXPORT Applet : public QObject, public Widget
|
||||
* Applets should implement contentSize() to tell Plasma::Applet how
|
||||
* much space they need.
|
||||
*
|
||||
* When drawing to the applet in the paintInterface() method, you can
|
||||
* use the QRect passed to that function. Outside paintInterface(), for
|
||||
* example when positioning a Plasma::Widget, you can assume your drawing
|
||||
* area has (0,0) at the top left and is the size of contentSize().
|
||||
*
|
||||
* If drawStandardBackground() == true, enough space will reserved
|
||||
* within the borders for the content, and boundingRect() will the
|
||||
* total size of the applet, including borders.
|
||||
|
Loading…
Reference in New Issue
Block a user