[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/krita/plugins/extensions/shiva
From: Cyrille Berger <cyb () lepi ! org>
Date: 2009-04-14 22:22:14
Message-ID: 1239747734.685117.12771.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 954026 by berger:
use the registry instance directly, which fix the loading of shiva generators
M +9 -12 shivagenerator.cpp
--- trunk/koffice/krita/plugins/extensions/shiva/shivagenerator.cpp #954025:954026
@@ -55,18 +55,15 @@
: KParts::Plugin(parent)
{
setComponentData( ShivaPluginFactory::componentData());
- if (parent->inherits("KisGeneratorRegistry")) {
- KisGeneratorRegistry * manager = dynamic_cast<KisGeneratorRegistry \
*>(parent);
- if (manager) {
- OpenShiva::SourcesCollection* kc = new OpenShiva::SourcesCollection();
- std::list< OpenShiva::Source* > kernels = \
kc->sources(OpenShiva::Source::GeneratorKernel);
-
- foreach( OpenShiva::Source* kernel, kernels )
- {
-// kDebug() << kernel->metadataCompilationErrors().c_str() << " " << \
kernel->isCompiled() ;
- manager->add(new ShivaGenerator( kernel ));
- }
- }
+ KisGeneratorRegistry * manager = KisGeneratorRegistry::instance();
+ Q_ASSERT(manager);
+ OpenShiva::SourcesCollection* kc = new OpenShiva::SourcesCollection();
+ std::list< OpenShiva::Source* > kernels = \
kc->sources(OpenShiva::Source::GeneratorKernel); +
+ foreach( OpenShiva::Source* kernel, kernels )
+ {
+ // kDebug() << kernel->metadataCompilationErrors().c_str() << " " << \
kernel->isCompiled() ; + manager->add(new ShivaGenerator( kernel ));
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic