diff --git a/applet.h b/applet.h index d955df37d..0c674ed4a 100644 --- a/applet.h +++ b/applet.h @@ -544,6 +544,14 @@ class PLASMA_EXPORT Applet : public QGraphicsWidget */ 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: /** * 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); - /** - * 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 * optional reason can be provided.