From 47ee5be97626dade88bd28b87e1c3153d36f98b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Sat, 2 Feb 2013 04:42:28 +0100 Subject: [PATCH] Make SvgItem work, now successfully shows an Svg --- declarativeimports/core/svgitem.cpp | 2 +- declarativeimports/core/svgitem.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/declarativeimports/core/svgitem.cpp b/declarativeimports/core/svgitem.cpp index 61127bddc..84789b672 100644 --- a/declarativeimports/core/svgitem.cpp +++ b/declarativeimports/core/svgitem.cpp @@ -28,7 +28,7 @@ namespace Plasma { SvgItem::SvgItem(QQuickItem *parent) - : QQuickItem(parent), + : QQuickPaintedItem(parent), m_smooth(false) { setFlag(QQuickItem::ItemHasContents, true); diff --git a/declarativeimports/core/svgitem.h b/declarativeimports/core/svgitem.h index 68dd3ed32..c8be7ccd5 100644 --- a/declarativeimports/core/svgitem.h +++ b/declarativeimports/core/svgitem.h @@ -19,13 +19,13 @@ #ifndef SVGITEM_P #define SVGITEM_P -#include +#include namespace Plasma { class Svg; -class SvgItem : public QQuickItem +class SvgItem : public QQuickPaintedItem { Q_OBJECT