nothing used the list theme info method.
anything that wanted a list of all themes did not want just plugin info but also the paths, etc. which made this method useless it may be worthwhile to have a "find all theme paths" replacement
This commit is contained in:
parent
2203be8e13
commit
3540524072
@ -43,7 +43,6 @@
|
||||
#include <kmanagerselection.h>
|
||||
#include <kimagecache.h>
|
||||
#include <ksharedconfig.h>
|
||||
#include <kstandarddirs.h>
|
||||
#include <kwindoweffects.h>
|
||||
#include <kwindowsystem.h>
|
||||
#include <qstandardpaths.h>
|
||||
@ -510,12 +509,6 @@ Theme::~Theme()
|
||||
delete d;
|
||||
}
|
||||
|
||||
KPluginInfo::List Theme::listThemeInfo()
|
||||
{
|
||||
const QStringList themes = KGlobal::dirs()->findAllResources("data", "desktoptheme/*/metadata.desktop", KStandardDirs::NoDuplicates);
|
||||
return KPluginInfo::fromFiles(themes);
|
||||
}
|
||||
|
||||
void ThemePrivate::settingsFileChanged(const QString &file)
|
||||
{
|
||||
if (file.endsWith(themeRcFile)) {
|
||||
|
@ -104,12 +104,6 @@ class PLASMA_EXPORT Theme : public QObject
|
||||
|
||||
~Theme();
|
||||
|
||||
/**
|
||||
* @return a list of all known themes
|
||||
* @since 4.3
|
||||
*/
|
||||
static KPluginInfo::List listThemeInfo();
|
||||
|
||||
/**
|
||||
* Sets the current theme being used.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user