don't load from plasma-appletsrc by default, provide a convenience
method for that however (e.g. mirror the saveApplets methods) svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=696806
This commit is contained in:
parent
05d103abfa
commit
61b1dccc3d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user