mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kparts: deal with TODO in plugin info
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
7886ac1e0f
commit
70300427c6
1 changed files with 1 additions and 5 deletions
|
@ -89,17 +89,13 @@ QList<Plugin::PluginInfo> Plugin::pluginInfos(const KComponentData &componentDat
|
|||
|
||||
QList<PluginInfo> plugins;
|
||||
|
||||
// TODO KDE5: change * into *.rc and remove test for .desktop from the for loop below.
|
||||
const QStringList pluginDocs = componentData.dirs()->findAllResources(
|
||||
"data", componentData.componentName()+"/kpartplugins/*", KStandardDirs::Recursive );
|
||||
"data", componentData.componentName()+"/kpartplugins/*.rc", KStandardDirs::Recursive );
|
||||
|
||||
QMap<QString,QStringList> sortedPlugins;
|
||||
const QStringList dummy;
|
||||
foreach ( const QString pIt, pluginDocs )
|
||||
{
|
||||
if ( pIt.endsWith(QLatin1String( ".desktop" ) ) )
|
||||
continue;
|
||||
|
||||
QFileInfo fInfo( pIt );
|
||||
QMap<QString,QStringList>::Iterator mapIt = sortedPlugins.find( fInfo.fileName() );
|
||||
if ( mapIt == sortedPlugins.end() )
|
||||
|
|
Loading…
Add table
Reference in a new issue