diff --git a/corona.cpp b/corona.cpp index 02658160a..270e23a6e 100644 --- a/corona.cpp +++ b/corona.cpp @@ -75,7 +75,6 @@ Corona::Corona(QObject *parent) : QGraphicsScene(parent), d(new Private) { - loadApplets("plasma-appletsrc"); //setViewport(new QGLWidget(QGLFormat(QGL::StencilBuffer | QGL::AlphaChannel))); } @@ -83,7 +82,6 @@ Corona::Corona(const QRectF & sceneRect, QObject * parent ) : QGraphicsScene(sceneRect, parent), d(new Private) { - loadApplets("plasma-appletsrc"); //setViewport(new QGLWidget(QGLFormat(QGL::StencilBuffer | QGL::AlphaChannel))); } @@ -91,7 +89,6 @@ Corona::Corona(qreal x, qreal y, qreal width, qreal height, QObject * parent) : QGraphicsScene(x, y, width, height, parent), d(new Private) { - loadApplets("plasma-appletsrc"); //setViewport(new QGLWidget(QGLFormat(QGL::StencilBuffer | QGL::AlphaChannel))); } @@ -205,6 +202,11 @@ void Corona::loadApplets(const QString& config) } } +void Corona::loadApplets() +{ + loadApplets("plasma-appletsrc"); +} + Applet* Corona::addApplet(const QString& name, const QStringList& args, uint id, const QRectF& geometry) { Applet* applet = Applet::loadApplet(name, id, args); diff --git a/corona.h b/corona.h index e67c5d9cd..361a0e7c0 100644 --- a/corona.h +++ b/corona.h @@ -91,6 +91,11 @@ public: void loadApplets(const QString &config); public Q_SLOTS: + /** + * Load applets from the default config file + */ + void loadApplets(); + /** * Save applets to the default config file */