Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 3c3ed838 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new kdelibs api

svn path=/trunk/koffice/; revision=543569
parent 93784406
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <kdebug.h> #include <kdebug.h>
#include <kparts/plugin.h> #include <kparts/plugin.h>
#include <kservice.h> #include <kservice.h>
#include <ktrader.h> #include <kservicetypetrader.h>
#include <kparts/componentfactory.h> #include <kparts/componentfactory.h>
#include <kmessagebox.h> #include <kmessagebox.h>
#include <klocale.h> #include <klocale.h>
...@@ -63,7 +63,7 @@ KisColorSpaceFactoryRegistry::KisColorSpaceFactoryRegistry(QStringList profileFi ...@@ -63,7 +63,7 @@ KisColorSpaceFactoryRegistry::KisColorSpaceFactoryRegistry(QStringList profileFi
*/ */
// Load all colorspace modules // Load all colorspace modules
KTrader::OfferList offers = KTrader::self()->query(QString::fromLatin1("Krita/ColorSpace"), KService::List offers = KServiceTypeTrader::self()->query(QString::fromLatin1("Krita/ColorSpace"),
QString::fromLatin1("(Type == 'Service') and " QString::fromLatin1("(Type == 'Service') and "
"([X-Krita-Version] == 2)")); "([X-Krita-Version] == 2)"));
...@@ -72,7 +72,7 @@ KisColorSpaceFactoryRegistry::KisColorSpaceFactoryRegistry(QStringList profileFi ...@@ -72,7 +72,7 @@ KisColorSpaceFactoryRegistry::KisColorSpaceFactoryRegistry(QStringList profileFi
abort(); abort();
} }
KTrader::OfferList::ConstIterator iter; KService::List::ConstIterator iter;
for(iter = offers.begin(); iter != offers.end(); ++iter) for(iter = offers.begin(); iter != offers.end(); ++iter)
{ {
KService::Ptr service = *iter; KService::Ptr service = *iter;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment