Commit a08921d4 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Remove useless calls to setComponentData

Conflicts:

	krita/ui/kis_view2.cpp
parent 5f04a5b0
......@@ -44,8 +44,6 @@ Backgrounds::Backgrounds(QObject *parent, const QVariantList &)
: KParts::Plugin(parent)
{
if (parent->inherits("KisView2")) {
setComponentData(BackgroundsFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/backgrounds.rc"), true);
KAction *action = new KAction(i18n("Select Image Background..."), this);
......
......@@ -78,8 +78,6 @@ BigBrotherPlugin::BigBrotherPlugin(QObject *parent, const QVariantList &)
if (parent->inherits("KisView2")) {
m_view = (KisView2*) parent;
setComponentData(BigBrotherPluginFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/bigbrother.rc"), true);
KAction* action = 0;
......
......@@ -78,8 +78,6 @@ Bracketing2HDRPlugin::Bracketing2HDRPlugin(QObject *parent, const QVariantList &
if (parent->inherits("KisView2")) {
m_view = (KisView2*) parent;
setComponentData(Bracketing2HDRPluginFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/bracketing2hdr.rc"), true);
KAction *action = new KAction(i18n("HDR Layer from bracketing"), this);
......
......@@ -58,8 +58,6 @@ ColorRange::ColorRange(QObject *parent, const QVariantList &)
: KParts::Plugin(parent)
{
if (parent->inherits("KisView2")) {
setComponentData(ColorRangeFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/colorrange.rc"),
true);
m_view = dynamic_cast<KisView2*>(parent);
......
......@@ -69,9 +69,6 @@ ColorSpaceConversion::ColorSpaceConversion(QObject *parent, const QVariantList &
{
if (parent->inherits("KisView2")) {
m_view = (KisView2*) parent;
setComponentData(ColorSpaceConversionFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/colorspaceconversion.rc"),
true);
......
......@@ -44,8 +44,6 @@ KisLayerComposePlugin::KisLayerComposePlugin(QObject *parent, const QVariantList
: KParts::Plugin(parent)
{
if (parent->inherits("KisView2")) {
setComponentData(KisLayerComposePluginFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/imageseparate.rc"), true);
m_view = (KisView2*) parent;
KAction *action = new KAction(i18n("Compose Layer..."), this);
......
......@@ -51,9 +51,6 @@ KisDropshadowPlugin::KisDropshadowPlugin(QObject *parent, const QVariantList &)
: KParts::Plugin(parent)
{
if (parent->inherits("KisView2")) {
setComponentData(KisDropshadowPluginFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/dropshadow.rc"), true);
m_view = (KisView2*) parent;
......
......@@ -42,9 +42,6 @@ ExtensionsManagerPlugin::ExtensionsManagerPlugin(QObject *parent, const QVariant
{
if (parent->inherits("KisView2")) {
m_view = (KisView2*) parent;
setComponentData(ExtensionsManagerPluginFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/extensionsmanager.rc"), true);
KAction *action = new KAction(i18n("Extensions manager..."), this);
......
......@@ -58,9 +58,6 @@ Histogram::Histogram(QObject *parent, const QVariantList &)
: KParts::Plugin(parent)
{
if (parent->inherits("KisView2")) {
setComponentData(HistogramFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/histogram.rc"),
true);
......
......@@ -70,8 +70,6 @@ ImageSize::ImageSize(QObject *parent, const QVariantList &)
: KParts::Plugin(parent)
{
if (parent->inherits("KisView2")) {
setComponentData(ImageSizeFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/imagesize.rc"), true);
KAction *action = new KAction(i18n("Scale To New Size..."), this);
......
......@@ -55,7 +55,6 @@ Imagesplit::Imagesplit(QObject *parent, const QVariantList &)
: KParts::Plugin(parent)
{
if (parent->inherits("KisView2")) {
setComponentData(ImagesplitFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/imagesplit.rc"), true);
KAction *action = new KAction(i18n("Image Split "), this);
actionCollection()->addAction("imagesplit", action);
......
......@@ -56,8 +56,6 @@ metadataeditorPlugin::metadataeditorPlugin(QObject *parent, const QVariantList &
if (parent->inherits("KisView2")) {
m_view = (KisView2*) parent;
setComponentData(metadataeditorPluginFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/metadataeditor.rc"), true);
KAction *action = new KAction(i18n("&Edit metadata..."), this);
......
......@@ -61,8 +61,6 @@ ModifySelection::ModifySelection(QObject *parent, const QVariantList &)
: KParts::Plugin(parent)
{
if (parent->inherits("KisView2")) {
setComponentData(ModifySelectionFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/modify_selection.rc"),
true);
......
......@@ -35,7 +35,6 @@ K_EXPORT_PLUGIN(PainterlyMixerFactory("krita"))
PainterlyMixer::PainterlyMixer(QObject *parent, const QVariantList &)
: KParts::Plugin(parent)
{
setComponentData(PainterlyMixerFactory::componentData());
KoDockRegistry::instance()->add(new KisPainterlyMixerDockerFactory());
}
......
......@@ -58,8 +58,6 @@ RotateImage::RotateImage(QObject *parent, const QVariantList &)
: KParts::Plugin(parent)
{
if (parent->inherits("KisView2")) {
setComponentData(RotateImageFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/rotateimage.rc"),
true);
m_view = (KisView2*) parent;
......
......@@ -80,8 +80,6 @@ ScriptingPart::ScriptingPart(QObject *parent, const QVariantList &)
, d(new Private())
{
d->view = dynamic_cast<KisView2*>(parent);
dbgScript << "ScriptingPart Ctor";
setComponentData(ScriptingPart::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/scripting.rc"), true);
#if 1
// Add filters
......
......@@ -54,8 +54,6 @@ KisSeparateChannelsPlugin::KisSeparateChannelsPlugin(QObject *parent, const QVar
: KParts::Plugin(parent)
{
if (parent->inherits("KisView2")) {
setComponentData(KisSeparateChannelsPluginFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/imageseparate.rc"), true);
m_view = (KisView2*) parent;
KAction *action = new KAction(i18n("Separate Image..."), this);
......
......@@ -56,8 +56,6 @@ ShearImage::ShearImage(QObject *parent, const QVariantList &)
: KParts::Plugin(parent)
{
if (parent->inherits("KisView2")) {
setComponentData(ShearImageFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/shearimage.rc"),
true);
......
......@@ -49,8 +49,6 @@ TogetherPlugin::TogetherPlugin(QObject *parent, const QVariantList &)
if (parent->inherits("KisView2")) {
m_view = (KisView2*) parent;
setComponentData(TogetherPluginFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/together.rc"), true);
}
......
......@@ -46,8 +46,6 @@ tonemappingPlugin::tonemappingPlugin(QObject *parent, const QVariantList &)
if (parent->inherits("KisView2") && KisToneMappingOperatorsRegistry::instance()->count() > 0) {
m_view = (KisView2*) parent;
setComponentData(tonemappingPluginFactory::componentData());
setXMLFile(KStandardDirs::locate("data", "kritaplugins/tonemapping.rc"), true);
m_toneMappingAction = new KAction(i18n("Tonemapping..."), this);
......
......@@ -40,8 +40,6 @@ K_EXPORT_PLUGIN(WateryMixPaintOpPluginFactory("krita"))
WateryMixPaintOpPlugin::WateryMixPaintOpPlugin(QObject *parent, const QVariantList &)
: QObject(parent)
{
//
//setComponentData(WateryMixPaintOpPluginFactory::componentData());
KisPaintOpRegistry *r = KisPaintOpRegistry::instance();
r->add(new KisSimplePaintOpFactory<KisWateryMixPaintOp, KisWateryMixPaintOpSettings, KisWateryMixPaintOpSettingsWidget>("waterymixbrush", i18n("Watery Mixbrush"), KisPaintOpFactory::categoryExperimental(),"krita-waterymix.png"));
......
......@@ -47,8 +47,6 @@ K_EXPORT_PLUGIN(ToolCurvesFactory("krita"))
ToolCurves::ToolCurves(QObject *parent, const QVariantList &)
: QObject(parent)
{
//setComponentData(ToolCurvesFactory::componentData());
if (parent->inherits("KoToolRegistry")) {
KoToolRegistry * r = dynamic_cast<KoToolRegistry*>(parent);
//r->add(new KisToolBezierPaintFactory());
......
......@@ -68,7 +68,6 @@ private:
{
m_view = (KisView2*) parent;
setComponentData(%{APPNAME}PluginFactory::componentData());
%{APPNAME}DockFactory dockFactory( m_view);
m_view->createDockWidget( &dockFactory );
}
......
......@@ -25,8 +25,6 @@ K_EXPORT_PLUGIN(%{APPNAME}PluginFactory("krita"))
{
m_view = (KisView2*) parent;
setComponentData(%{APPNAME}PluginFactory::componentData());
setXMLFile(KStandardDirs::locate("data","kritaplugins/%{APPNAMELC}.rc"), true);
KAction *action = new KAction(i18n("&My action !"), this);
......
......@@ -223,8 +223,6 @@ KisView2::KisView2(KisDoc2 * doc, QWidget * parent)
setFocusPolicy(Qt::NoFocus);
setComponentData(KisFactory2::componentData(), false);
if (!doc->isReadWrite()) {
setXMLFile("krita_readonly.rc");
} else {
......
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