re-set the prefix after setting the path

This commit is contained in:
Marco Martin 2011-03-27 12:37:23 +02:00
parent 2acf29889e
commit 11b6e78640
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -88,6 +88,7 @@ private Q_SLOTS:
private:
Plasma::FrameSvg *m_frameSvg;
FrameSvgItemMargins *m_margins;
QString m_prefix;
};
}