move this into a more appropriate place
svn path=/trunk/KDE/kdelibs/; revision=1106778
This commit is contained in:
parent
422a8bc297
commit
f7cab7fcf2
16
applet.cpp
16
applet.cpp
|
@ -177,6 +177,14 @@ Applet::Applet(QObject *parentObject, const QVariantList &args)
|
|||
// inflexibility of KService::createInstance
|
||||
}
|
||||
|
||||
Applet::Applet(const QString &packagePath, uint appletId, const QVariantList &args)
|
||||
: QGraphicsWidget(0),
|
||||
d(new AppletPrivate(KService::Ptr(new KService(packagePath + "/metadata.desktop")), appletId, this))
|
||||
{
|
||||
Q_UNUSED(args) // FIXME?
|
||||
d->init(packagePath);
|
||||
}
|
||||
|
||||
Applet::~Applet()
|
||||
{
|
||||
//let people know that i will die
|
||||
|
@ -2183,14 +2191,6 @@ QStringList Applet::customCategories()
|
|||
return AppletPrivate::s_customCategories.toList();
|
||||
}
|
||||
|
||||
Applet::Applet(const QString &packagePath, uint appletId, const QVariantList &args)
|
||||
: QGraphicsWidget(0),
|
||||
d(new AppletPrivate(KService::Ptr(new KService(packagePath + "/metadata.desktop")), appletId, this))
|
||||
{
|
||||
Q_UNUSED(args) // FIXME?
|
||||
d->init(packagePath);
|
||||
}
|
||||
|
||||
Applet *Applet::loadPlasmoid(const QString &path, uint appletId, const QVariantList &args)
|
||||
{
|
||||
if (QFile::exists(path + "/metadata.desktop")) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user