use QSvgRenderer, now that KSvgRenderer is a shallow wrapper around it since QSvgRenderer gained it's (previously) add-on functionality to QSvgRenderer

svn path=/trunk/KDE/kdelibs/; revision=1140887
This commit is contained in:
Aaron J. Seigo 2010-06-21 18:28:47 +00:00
parent bc38bec0c7
commit de28184c32

10
svg.cpp
View File

@ -25,6 +25,7 @@
#include <QMatrix> #include <QMatrix>
#include <QPainter> #include <QPainter>
#include <QSharedData> #include <QSharedData>
#include <QSvgRenderer>
#include <kcolorscheme.h> #include <kcolorscheme.h>
#include <kconfiggroup.h> #include <kconfiggroup.h>
@ -32,7 +33,6 @@
#include <kiconeffect.h> #include <kiconeffect.h>
#include <kglobalsettings.h> #include <kglobalsettings.h>
#include <ksharedptr.h> #include <ksharedptr.h>
#include <ksvgrenderer.h>
#include "applet.h" #include "applet.h"
#include "package.h" #include "package.h"
@ -41,21 +41,21 @@
namespace Plasma namespace Plasma
{ {
class SharedSvgRenderer : public KSvgRenderer, public QSharedData class SharedSvgRenderer : public QSvgRenderer, public QSharedData
{ {
public: public:
typedef KSharedPtr<SharedSvgRenderer> Ptr; typedef KSharedPtr<SharedSvgRenderer> Ptr;
SharedSvgRenderer(QObject *parent = 0) SharedSvgRenderer(QObject *parent = 0)
: KSvgRenderer(parent) : QSvgRenderer(parent)
{} {}
SharedSvgRenderer(const QString &filename, QObject *parent = 0) SharedSvgRenderer(const QString &filename, QObject *parent = 0)
: KSvgRenderer(filename, parent) : QSvgRenderer(filename, parent)
{} {}
SharedSvgRenderer(const QByteArray &contents, QObject *parent = 0) SharedSvgRenderer(const QByteArray &contents, QObject *parent = 0)
: KSvgRenderer(contents, parent) : QSvgRenderer(contents, parent)
{} {}
~SharedSvgRenderer() ~SharedSvgRenderer()