needs to be public so custom coronas can get at it as needed

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=811413
This commit is contained in:
Aaron J. Seigo 2008-05-22 22:59:35 +00:00
parent bc1688ae41
commit 58f283c58c

View File

@ -544,6 +544,14 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
*/ */
void flushPendingConstraintsEvents(); void flushPendingConstraintsEvents();
/**
* This method is called once the applet is loaded and added to a Corona.
* If the applet requires a QGraphicsScene or has an particularly intensive
* set of initialization routines to go through, consider implementing it
* in this method instead of the constructor.
**/
virtual void init();
protected: protected:
/** /**
* This constructor is to be used with the plugin loading systems * This constructor is to be used with the plugin loading systems
@ -557,14 +565,6 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget
*/ */
Applet(QObject* parent, const QVariantList& args); Applet(QObject* parent, const QVariantList& args);
/**
* This method is called once the applet is loaded and added to a Corona.
* If the applet requires a QGraphicsScene or has an particularly intensive
* set of initialization routines to go through, consider implementing it
* in this method instead of the constructor.
**/
virtual void init();
/** /**
* Call this method when the applet fails to launch properly. An * Call this method when the applet fails to launch properly. An
* optional reason can be provided. * optional reason can be provided.