Commit ab365b16 authored by Boudewijn Rempt's avatar Boudewijn Rempt

remove commented-out setComponentData lines

These plugins are not parts, so they don't need the line, and won't need
it back any time soon.
parent 585f75a1
......@@ -74,7 +74,6 @@ SpecificColorSelectorPlugin::SpecificColorSelectorPlugin(QObject *parent, const
{
dbgPlugins << "SpecificColorSelectorPlugin";
//setComponentData(SpecificColorSelectorPluginFactory::componentData());
KoDockRegistry::instance()->add(new SpecificColorSelectorDockFactory());
}
......
......@@ -33,8 +33,6 @@ K_EXPORT_PLUGIN(BlurFilterPluginFactory("krita"))
BlurFilterPlugin::BlurFilterPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(BlurFilterPluginFactory::componentData());
KisFilterRegistry::instance()->add(new KisBlurFilter());
KisFilterRegistry::instance()->add(new KisGaussianBlurFilter());
KisFilterRegistry::instance()->add(new KisMotionBlurFilter());
......
......@@ -79,7 +79,6 @@ K_EXPORT_PLUGIN(KritaBumpmapFactory("krita"))
KritaBumpmap::KritaBumpmap(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(KritaBumpmapFactory::componentData());
KisFilterRegistry::instance()->add(new KisFilterBumpmap());
}
......
......@@ -31,8 +31,6 @@ K_EXPORT_PLUGIN(KritaExtensionsColorsFactory("krita"))
KritaExtensionsColors::KritaExtensionsColors(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(KritaExtensionsColorsFactory::componentData());
KisFilterRegistry * manager = KisFilterRegistry::instance();
manager->add(new KisFilterMax());
manager->add(new KisFilterMin());
......
......@@ -69,8 +69,6 @@ K_EXPORT_PLUGIN(ColorsFiltersFactory("krita"))
ColorsFilters::ColorsFilters(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(ColorsFiltersFactory::componentData());
KisFilterRegistry * manager = KisFilterRegistry::instance();
manager->add(new KisBrightnessContrastFilter());
manager->add(new KisAutoContrast());
......
......@@ -45,7 +45,6 @@ K_EXPORT_PLUGIN(KritaConvolutionFiltersFactory("krita"))
KritaConvolutionFilters::KritaConvolutionFilters(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(KritaConvolutionFiltersFactory::componentData());
KisFilterRegistry * manager = KisFilterRegistry::instance();
manager->add(new KisSharpenFilter());
manager->add(new KisMeanRemovalFilter());
......
......@@ -30,7 +30,6 @@ K_EXPORT_PLUGIN(KisCubismFilterPluginFactory("krita"))
KisCubismFilterPlugin::KisCubismFilterPlugin(QObject *parent, const QVariantList &) : QObject(parent)
{
//setComponentData(KisCubismFilterPluginFactory::componentData());
KisFilterRegistry::instance()->add(new KisCubismFilter());
}
......
......@@ -30,7 +30,6 @@ K_EXPORT_PLUGIN(KisEmbossFilterPluginFactory("krita"))
KisEmbossFilterPlugin::KisEmbossFilterPlugin(QObject *parent, const QVariantList &) : QObject(parent)
{
//setComponentData(KisEmbossFilterPluginFactory::componentData());
KisFilterRegistry::instance()->add(new KisEmbossFilter());
}
......
......@@ -46,8 +46,6 @@ K_EXPORT_PLUGIN(KritaExampleFactory("krita"))
KritaExample::KritaExample(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(KritaExampleFactory::componentData());
KisFilterRegistry::instance()->add(KisFilterSP(new KisFilterInvert()));
}
......
......@@ -49,7 +49,6 @@ K_EXPORT_PLUGIN(KritaFastColorTransferFactory("krita"))
FastColorTransferPlugin::FastColorTransferPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(KritaFastColorTransferFactory::componentData());
KisFilterRegistry::instance()->add(new KisFilterFastColorTransfer());
}
......
......@@ -49,7 +49,6 @@ K_EXPORT_PLUGIN(KritaImageEnhancementFactory("krita"))
KritaImageEnhancement::KritaImageEnhancement(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(KritaImageEnhancementFactory::componentData());
KisFilterRegistry::instance()->add(new KisSimpleNoiseReducer());
KisFilterRegistry::instance()->add(new KisWaveletNoiseReduction());
}
......
......@@ -31,7 +31,6 @@ K_EXPORT_PLUGIN(LevelFilterFactory("krita"))
LevelFilter::LevelFilter(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(LevelFilterFactory::componentData());
KisFilterRegistry::instance()->add(new KisLevelFilter());
}
......
......@@ -58,7 +58,6 @@ K_EXPORT_PLUGIN(KritaNoiseFilterFactory("krita"))
KritaNoiseFilter::KritaNoiseFilter(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(KritaNoiseFilterFactory::componentData());
KisFilterRegistry::instance()->add(new KisFilterNoise());
}
......
......@@ -31,7 +31,6 @@ K_EXPORT_PLUGIN(KisOilPaintFilterPluginFactory("krita"))
KisOilPaintFilterPlugin::KisOilPaintFilterPlugin(QObject *parent, const QVariantList &) : QObject(parent)
{
//setComponentData(KisOilPaintFilterPluginFactory::componentData());
KisFilterRegistry::instance()->add(new KisOilPaintFilter());
}
......
......@@ -35,7 +35,6 @@ K_EXPORT_PLUGIN(KisPixelizeFilterPluginFactory("krita"))
KisPixelizeFilterPlugin::KisPixelizeFilterPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(KisPixelizeFilterPluginFactory::componentData());
KisFilterRegistry::instance()->add(new KisPixelizeFilter());
}
......
......@@ -32,7 +32,6 @@ K_EXPORT_PLUGIN(KisRainDropsFilterPluginFactory("krita"))
KisRainDropsFilterPlugin::KisRainDropsFilterPlugin(QObject *parent, const QVariantList &) : QObject(parent)
{
//setComponentData(KisRainDropsFilterPluginFactory::componentData());
KisFilterRegistry::instance()->add(new KisRainDropsFilter());
}
......
......@@ -60,7 +60,6 @@ K_EXPORT_PLUGIN(KritaRandomPickFilterFactory("krita"))
KritaRandomPickFilter::KritaRandomPickFilter(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(KritaRandomPickFilterFactory::componentData());
KisFilterRegistry::instance()->add(new KisFilterRandomPick());
}
......
......@@ -32,7 +32,6 @@ K_EXPORT_PLUGIN(KisRoundCornersFilterPluginFactory("krita"))
KisRoundCornersFilterPlugin::KisRoundCornersFilterPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(KisRoundCornersFilterPluginFactory::componentData());
KisFilterRegistry::instance()->add(new KisRoundCornersFilter());
}
......
......@@ -32,7 +32,6 @@ K_EXPORT_PLUGIN(KisSmallTilesFilterPluginFactory("krita"))
KisSmallTilesFilterPlugin::KisSmallTilesFilterPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(KisSmallTilesFilterPluginFactory::componentData());
KisFilterRegistry::instance()->add(new KisSmallTilesFilter());
}
......
......@@ -32,7 +32,6 @@ K_EXPORT_PLUGIN(KisSobelFilterPluginFactory("krita"))
KisSobelFilterPlugin::KisSobelFilterPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(KisSobelFilterPluginFactory::componentData());
KisFilterRegistry::instance()->add(new KisSobelFilter());
}
......
......@@ -31,7 +31,6 @@ K_EXPORT_PLUGIN(UnsharpPluginFactory("krita"))
UnsharpPlugin::UnsharpPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(UnsharpPluginFactory::componentData());
KisFilterRegistry::instance()->add(new KisUnsharpFilter());
}
......
......@@ -95,7 +95,6 @@ private:
}; KritaWaveFilter::KritaWaveFilter(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(KritaWaveFilterFactory::componentData());
KisFilterRegistry::instance()->add(new KisFilterWave());
}
......
......@@ -55,7 +55,6 @@ K_EXPORT_PLUGIN(KritaColorGeneratorFactory("krita"))
KritaColorGenerator::KritaColorGenerator(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(KritaColorGeneratorFactory::componentData());
KisGeneratorRegistry::instance()->add(new KisColorGenerator());
}
......
......@@ -40,8 +40,6 @@ K_EXPORT_PLUGIN(ChalkPaintOpPluginFactory("krita"))
ChalkPaintOpPlugin::ChalkPaintOpPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//
//setComponentData(ChalkPaintOpPluginFactory::componentData());
KisPaintOpRegistry *r = KisPaintOpRegistry::instance();
r->add(new KisSimplePaintOpFactory<KisChalkPaintOp, KisChalkPaintOpSettings, KisChalkPaintOpSettingsWidget>("chalkbrush", i18n("Chalk brush"),
KisPaintOpFactory::categoryExperimental(), "krita-chalk.png"));
......
......@@ -33,7 +33,6 @@ ComplexBrush::ComplexBrush(QObject *parent, const QVariantList &sl)
{
Q_UNUSED(sl)
//setComponentData(ComplexBrushFactory::componentData());
KisPaintOpRegistry::instance()->add(new KisSimplePaintOpFactory<KisComplexOp, KisComplexOpSettings, KisComplexOpSettingsWidget>("complex", i18n("Mixing Brush"),
KisPaintOpFactory::categoryExperimental(),"krita-mixing.png"));
KisPaintOpFactory *factory = KisPaintOpRegistry::instance()->get("complex");
......
......@@ -40,7 +40,6 @@ K_EXPORT_PLUGIN(CurvePaintOpPluginFactory("krita"))
CurvePaintOpPlugin::CurvePaintOpPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(CurvePaintOpPluginFactory::componentData());
KisPaintOpRegistry *r = KisPaintOpRegistry::instance();
r->add(new KisSimplePaintOpFactory<KisCurvePaintOp, KisCurvePaintOpSettings, KisCurvePaintOpSettingsWidget>("curvebrush", i18n("Curve brush"), KisPaintOpFactory::categoryExperimental(), "krita-curve.png"));
......
......@@ -45,8 +45,6 @@ K_EXPORT_PLUGIN(DefaultPaintOpsPluginFactory("krita"))
DefaultPaintOpsPlugin::DefaultPaintOpsPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(DefaultPaintOpsPluginFactory::componentData());
KisPaintOpRegistry *r = KisPaintOpRegistry::instance();
r->add(new KisSimplePaintOpFactory<KisBrushOp, KisBrushBasedPaintOpSettings, KisBrushOpSettingsWidget>("paintbrush", i18n("Pixel Brush"), KisPaintOpFactory::categoryStable(),"krita-paintbrush.png",QString(),QStringList(),1));
r->add(new KisDuplicateOpFactory);
......
......@@ -37,7 +37,6 @@ K_EXPORT_PLUGIN(DeformPaintOpPluginFactory("krita"))
DeformPaintOpPlugin::DeformPaintOpPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(DeformPaintOpPluginFactory::componentData());
KisPaintOpRegistry *r = KisPaintOpRegistry::instance();
r->add(new KisDeformPaintOpFactory);
......
......@@ -37,8 +37,6 @@ K_EXPORT_PLUGIN(DynaPaintOpPluginFactory("krita"))
DynaPaintOpPlugin::DynaPaintOpPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//
//setComponentData(DynaPaintOpPluginFactory::componentData());
KisPaintOpRegistry *r = KisPaintOpRegistry::instance();
r->add(new KisSimplePaintOpFactory<KisDynaPaintOp, KisDynaPaintOpSettings, KisDynaPaintOpSettingsWidget>("dynabrush", i18n("Dyna brush"), KisPaintOpFactory::categoryExperimental(), "krita-dyna.png"));
......
......@@ -39,7 +39,6 @@ K_EXPORT_PLUGIN(ExperimentPaintOpPluginFactory("krita"))
ExperimentPaintOpPlugin::ExperimentPaintOpPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(ExperimentPaintOpPluginFactory::componentData());
KisPaintOpRegistry *r = KisPaintOpRegistry::instance();
r->add(new KisSimplePaintOpFactory<KisExperimentPaintOp, KisExperimentPaintOpSettings, KisExperimentPaintOpSettingsWidget>("experimentbrush", i18n("Experiment brush"),
KisPaintOpFactory::categoryExperimental(), "krita-experiment.png"));
......
......@@ -38,7 +38,6 @@ K_EXPORT_PLUGIN(FilterOpFactory("krita"))
FilterOp::FilterOp(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(FilterOpFactory::componentData());
QStringList whiteList;
whiteList << COMPOSITE_COPY;
......
......@@ -38,8 +38,6 @@ K_EXPORT_PLUGIN(GridPaintOpPluginFactory("krita"))
GridPaintOpPlugin::GridPaintOpPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//
//setComponentData(GridPaintOpPluginFactory::componentData());
KisPaintOpRegistry *r = KisPaintOpRegistry::instance();
r->add(new KisSimplePaintOpFactory<KisGridPaintOp, KisGridPaintOpSettings, KisGridPaintOpSettingsWidget>("gridbrush", i18n("Grid brush"),
KisPaintOpFactory::categoryExperimental(), "krita-grid.png"));
......
......@@ -41,8 +41,6 @@ K_EXPORT_PLUGIN(HairyPaintOpPluginFactory("krita"))
HairyPaintOpPlugin::HairyPaintOpPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(HairyPaintOpPluginFactory::componentData());
KisPaintOpRegistry *r = KisPaintOpRegistry::instance();
r->add(new KisSimplePaintOpFactory<KisHairyPaintOp, KisHairyPaintOpSettings, KisHairyPaintOpSettingsWidget>("hairybrush", i18n("Hairy brush"), KisPaintOpFactory::categoryStable(),"krita-sumi.png"));
......
......@@ -40,8 +40,6 @@ K_EXPORT_PLUGIN(HatchingPaintOpPluginFactory("krita"))
HatchingPaintOpPlugin::HatchingPaintOpPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//
//setComponentData(HatchingPaintOpPluginFactory::componentData());
KisPaintOpRegistry *r = KisPaintOpRegistry::instance();
r->add(new KisSimplePaintOpFactory<KisHatchingPaintOp, KisHatchingPaintOpSettings, KisHatchingPaintOpSettingsWidget>("hatchingbrush", i18n("Hatching brush"),
KisPaintOpFactory::categoryStable() ,"krita-hatching.png"));
......
......@@ -36,7 +36,6 @@ K_EXPORT_PLUGIN(MyPaintPluginFactory("krita"))
MyPaintPlugin::MyPaintPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(MyPaintPluginFactory::componentData());
KisPaintOpRegistry *r = KisPaintOpRegistry::instance();
MyPaintFactory* factory = new MyPaintFactory;
r->add(factory);
......
......@@ -40,8 +40,6 @@ K_EXPORT_PLUGIN(SketchPaintOpPluginFactory("krita"))
SketchPaintOpPlugin::SketchPaintOpPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//
//setComponentData(SketchPaintOpPluginFactory::componentData());
KisPaintOpRegistry *r = KisPaintOpRegistry::instance();
r->add(new KisSimplePaintOpFactory<KisSketchPaintOp, KisSketchPaintOpSettings, KisSketchPaintOpSettingsWidget>("sketchbrush", i18n("Sketch brush"), KisPaintOpFactory::categoryExperimental(), "krita-sketch.png"));
......
......@@ -38,8 +38,6 @@ K_EXPORT_PLUGIN(SprayPaintOpPluginFactory("krita"))
SprayPaintOpPlugin::SprayPaintOpPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//
//setComponentData(SprayPaintOpPluginFactory::componentData());
KisPaintOpRegistry *r = KisPaintOpRegistry::instance();
r->add(new KisSimplePaintOpFactory<KisSprayPaintOp, KisSprayPaintOpSettings, KisSprayPaintOpSettingsWidget>("spraybrush", i18n("Spray brush"), KisPaintOpFactory::categoryExperimental() , "krita-spray.png"));
......
......@@ -46,8 +46,6 @@ K_EXPORT_PLUGIN(SelectionToolsFactory("krita"))
SelectionTools::SelectionTools(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(SelectionToolsFactory::componentData());
KoToolRegistry * r = KoToolRegistry::instance();
r->add(new KisToolSelectOutlineFactory(QStringList()));
......
......@@ -45,8 +45,6 @@ K_EXPORT_PLUGIN(ToolCropFactory("krita"))
ToolCrop::ToolCrop(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(ToolCropFactory::componentData());
KoToolRegistry * r = KoToolRegistry::instance();
r->add(new KisToolCropFactory(QStringList()));
......
......@@ -48,8 +48,6 @@ K_EXPORT_PLUGIN(ToolDynaFactory("krita"))
ToolDyna::ToolDyna(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(ToolDynaFactory::componentData());
KoToolRegistry * r = KoToolRegistry::instance();
r->add(new KisToolDynaFactory(QStringList()));
}
......
......@@ -42,8 +42,6 @@ K_EXPORT_PLUGIN(GridFactory("krita"))
GridPlugin::GridPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(GridFactory::componentData());
KoToolRegistry * r = KoToolRegistry::instance();
r->add(new KisToolGridFactory(QStringList()));
}
......
......@@ -45,8 +45,6 @@ K_EXPORT_PLUGIN(ToolPerspectiveGridFactory("krita"))
ToolPerspectiveGrid::ToolPerspectiveGrid(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(ToolPerspectiveGridFactory::componentData());
KoToolRegistry * r = KoToolRegistry::instance();
r->add(new KisToolPerspectiveGridFactory(QStringList()));
}
......
......@@ -46,8 +46,6 @@ K_EXPORT_PLUGIN(ToolPolygonFactory("krita"))
ToolPolygon::ToolPolygon(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(ToolPolygonFactory::componentData());
KoToolRegistry * r = KoToolRegistry::instance();
r->add(new KisToolPolygonFactory(QStringList()));
}
......
......@@ -46,8 +46,6 @@ K_EXPORT_PLUGIN(ToolPolylineFactory("krita"))
ToolPolyline::ToolPolyline(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(ToolPolylineFactory::componentData());
KoToolRegistry * r = KoToolRegistry::instance();
r->add(new KisToolPolylineFactory(QStringList()));
......
......@@ -47,8 +47,6 @@ K_EXPORT_PLUGIN(ToolStarFactory("krita"))
ToolStar::ToolStar(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(ToolStarFactory::componentData());
KoToolRegistry * r = KoToolRegistry::instance();
r->add(new KisToolStarFactory(QStringList()));
......
......@@ -45,8 +45,6 @@ K_EXPORT_PLUGIN(ToolTextFactory("krita"))
ToolText::ToolText(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(ToolTextFactory::componentData());
KoToolRegistry * r = KoToolRegistry::instance();
r->add(new KisToolTextFactory(QStringList()));
......
......@@ -44,8 +44,6 @@ K_EXPORT_PLUGIN(ToolTransformFactory("krita"))
ToolTransform::ToolTransform(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(ToolTransformFactory::componentData());
KoToolRegistry * r = KoToolRegistry::instance();
r->add(new KisToolTransformFactory(QStringList()));
......
......@@ -62,7 +62,6 @@ LcmsEnginePlugin::LcmsEnginePlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
kDebug(31000) << "Initializing the lcms engine plugin";
//setComponentData(LcmsEnginePluginFactory::componentData());
KGlobal::locale()->insertCatalog("kocolorspaces");
// Set the lmcs error reporting function
......
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