From 11b6e786405b346f44c57592b3f8a484253f5eec Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sun, 27 Mar 2011 12:37:23 +0200 Subject: [PATCH] re-set the prefix after setting the path --- declarativeimports/core/framesvgitem.cpp | 4 +++- declarativeimports/core/framesvgitem_p.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/declarativeimports/core/framesvgitem.cpp b/declarativeimports/core/framesvgitem.cpp index 1a9f811b2..4c030f356 100644 --- a/declarativeimports/core/framesvgitem.cpp +++ b/declarativeimports/core/framesvgitem.cpp @@ -71,6 +71,7 @@ FrameSvgItem::~FrameSvgItem() void FrameSvgItem::setImagePath(const QString &path) { m_frameSvg->setImagePath(path); + m_frameSvg->setElementPrefix(m_prefix); update(); } @@ -83,12 +84,13 @@ QString FrameSvgItem::imagePath() const void FrameSvgItem::setPrefix(const QString &prefix) { m_frameSvg->setElementPrefix(prefix); + m_prefix = prefix; update(); } QString FrameSvgItem::prefix() const { - return m_frameSvg->prefix(); + return m_prefix; } FrameSvgItemMargins *FrameSvgItem::margins() const diff --git a/declarativeimports/core/framesvgitem_p.h b/declarativeimports/core/framesvgitem_p.h index abdb42a79..f6cf16284 100644 --- a/declarativeimports/core/framesvgitem_p.h +++ b/declarativeimports/core/framesvgitem_p.h @@ -88,6 +88,7 @@ private Q_SLOTS: private: Plasma::FrameSvg *m_frameSvg; FrameSvgItemMargins *m_margins; + QString m_prefix; }; }