summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPino Toscano <pino@kde.org>2016-08-28 14:29:11 (GMT)
committerPino Toscano <pino@kde.org>2016-08-28 14:29:11 (GMT)
commit7683b0e6704fd72299d8fc64c35e6a56202ca641 (patch)
tree3e1cc587dca888e2140673d1ef490b59f6903f7b
parente0f06693c88849e1b8bc7c4fe120aa3c5b6f5055 (diff)
Use our KAboutData
Call setComponentData() with the KAboutData of the svgpart at the beginning of the constructor, instead of a simple setComponentName() later on.
-rw-r--r--svgpart.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/svgpart.cpp b/svgpart.cpp
index dc066b7..809d99b 100644
--- a/svgpart.cpp
+++ b/svgpart.cpp
@@ -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"