[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kparts
From: Kevin Ottens <ervin () kde ! org>
Date: 2010-11-04 8:29:00
Message-ID: 20101104082900.5A80CAC89B () svn ! kde ! org
[Download RAW message or body]
SVN commit 1192881 by ervin:
Port away from deprecated API.
M +6 -5 factory.cpp
--- trunk/KDE/kdelibs/kparts/factory.cpp #1192880:1192881
@@ -23,6 +23,8 @@
#include <QtGui/QWidget>
+#include <kpluginloader.h>
+#include <klibrary.h>
#include <klocale.h>
#include <kglobal.h>
#include <kcomponentdata.h>
@@ -31,7 +33,7 @@
using namespace KParts;
Factory::Factory( QObject *parent )
-: KLibFactory( parent )
+: KLibFactory( 0, 0, parent )
{
}
@@ -54,10 +56,9 @@
KComponentData Factory::partComponentDataFromLibrary( const QString &libraryName )
{
- KLibrary *library = KLibLoader::self()->library( libraryName );
- if ( !library )
- return KComponentData();
- KLibFactory *factory = library->factory();
+ KPluginLoader loader( libraryName );
+
+ KLibFactory *factory = loader.factory();
if ( !factory )
return KComponentData();
KParts::Factory *pfactory = dynamic_cast<KParts::Factory *>( factory );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic