Commit 7683b0e6 authored by Pino Toscano's avatar Pino Toscano
Browse files

Use our KAboutData

Call setComponentData() with the KAboutData of the svgpart at the
beginning of the constructor, instead of a simple setComponentName()
later on.
parent e0f06693
......@@ -49,6 +49,8 @@ K_PLUGIN_FACTORY( SvgPartFactory, registerPlugin< SvgPart >(); )
SvgPart::SvgPart(QWidget* parentWidget, QObject* parent, const QVariantList&)
: KParts::ReadOnlyPart(parent)
{
setComponentData(createAboutData());
mRenderer = new QSvgRenderer(this);
mScene = new QGraphicsScene(this);
mView = new QGraphicsView(mScene, parentWidget);
......@@ -60,7 +62,6 @@ SvgPart::SvgPart(QWidget* parentWidget, QObject* parent, const QVariantList&)
KStandardAction::actualSize(this, SLOT(zoomActualSize()), actionCollection());
KStandardAction::zoomIn(this, SLOT(zoomIn()), actionCollection());
KStandardAction::zoomOut(this, SLOT(zoomOut()), actionCollection());
setComponentName(QLatin1Literal("svgpart"), i18n("SVG Part"));
setXMLFile("svgpart.rc");
}
......@@ -109,4 +110,4 @@ void SvgPart::setZoom(qreal value) {
mView->setMatrix(matrix);
}
#include "svgpart.moc"
\ No newline at end of file
#include "svgpart.moc"
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