Commit c29e7517 authored by Volker Krause's avatar Volker Krause
Browse files

KSvgRenderer -> QSvgRenderer

They are equivalent with Qt >= 4.6.
parent 519d8ece
......@@ -22,13 +22,13 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <QGraphicsScene>
#include <QGraphicsSvgItem>
#include <QGraphicsView>
#include <QSvgRenderer>
// KDE
#include <kaboutdata.h>
#include <kactioncollection.h>
#include <kgenericfactory.h>
#include <kstandardaction.h>
#include <ksvgrenderer.h>
// Local
......@@ -49,7 +49,7 @@ K_EXPORT_PLUGIN( SvgPartFactory( createAboutData() ) )
SvgPart::SvgPart(QWidget* parentWidget, QObject* parent, const QVariantList&)
: KParts::ReadOnlyPart(parent)
{
mRenderer = new KSvgRenderer(this);
mRenderer = new QSvgRenderer(this);
mScene = new QGraphicsScene(this);
mView = new QGraphicsView(mScene, parentWidget);
mView->setFrameStyle(QFrame::NoFrame);
......
......@@ -22,11 +22,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// KDE
#include <kparts/part.h>
class KSvgRenderer;
class QGraphicsScene;
class QGraphicsSvgItem;
class QGraphicsView;
class QSvgRenderer;
class SvgPart : public KParts::ReadOnlyPart {
Q_OBJECT
......@@ -47,7 +47,7 @@ private:
QGraphicsScene* mScene;
QGraphicsView* mView;
QGraphicsSvgItem* mItem;
KSvgRenderer* mRenderer;
QSvgRenderer* mRenderer;
qreal zoom() const;
void setZoom(qreal);
......
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