Commit d3063088 authored by Boudewijn Rempt's avatar Boudewijn Rempt

load the paintops, filters and generators as soon as possible, instead of when...

load the paintops, filters and generators as soon as possible, instead of when we're constructing the view. This makes startup 'feel' a bit better, though it doesn't make any real difference, of course

svn path=/trunk/koffice/; revision=940309
parent c0f46e7a
...@@ -40,6 +40,9 @@ ...@@ -40,6 +40,9 @@
#include <KoShapeRegistry.h> #include <KoShapeRegistry.h>
#include "kis_aboutdata.h" #include "kis_aboutdata.h"
#include "filter/kis_filter_registry.h"
#include "generator/kis_generator_registry.h"
#include "kis_paintop_registry.h"
#include "flake/kis_shape_selection.h" #include "flake/kis_shape_selection.h"
#include "kis_doc2.h" #include "kis_doc2.h"
...@@ -100,6 +103,10 @@ const KComponentData &KisFactory2::componentData() ...@@ -100,6 +103,10 @@ const KComponentData &KisFactory2::componentData()
KoShapeRegistry* r = KoShapeRegistry::instance(); KoShapeRegistry* r = KoShapeRegistry::instance();
r->add(new KisShapeSelectionFactory(r)); r->add(new KisShapeSelectionFactory(r));
KisFilterRegistry::instance();
KisGeneratorRegistry::instance();
KisPaintOpRegistry::instance();
// Load the krita-specific tools // Load the krita-specific tools
KoPluginLoader::instance()->load(QString::fromLatin1("Krita/Tool"), KoPluginLoader::instance()->load(QString::fromLatin1("Krita/Tool"),
QString::fromLatin1("[X-Krita-Version] == 3")); QString::fromLatin1("[X-Krita-Version] == 3"));
......
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