Make SvgItem work, now successfully shows an Svg

This commit is contained in:
Sebastian Kügler 2013-02-02 04:42:28 +01:00
parent 22b217228f
commit 47ee5be976
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ namespace Plasma
{
SvgItem::SvgItem(QQuickItem *parent)
: QQuickItem(parent),
: QQuickPaintedItem(parent),
m_smooth(false)
{
setFlag(QQuickItem::ItemHasContents, true);

View File

@ -19,13 +19,13 @@
#ifndef SVGITEM_P
#define SVGITEM_P
#include <QQuickItem>
#include <QQuickPaintedItem>
namespace Plasma {
class Svg;
class SvgItem : public QQuickItem
class SvgItem : public QQuickPaintedItem
{
Q_OBJECT