device pixel ratio applied before generating svg
Change-Id: I22bc343894716cbbebabd5c0633889890ce1da9e CCBUG:345155
This commit is contained in:
parent
8bebf82fbf
commit
3516c04006
@ -279,9 +279,9 @@ void FrameSvgItem::setImagePath(const QString &path)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
updateDevicePixelRatio();
|
||||||
m_frameSvg->setImagePath(path);
|
m_frameSvg->setImagePath(path);
|
||||||
m_frameSvg->setElementPrefix(m_prefix);
|
m_frameSvg->setElementPrefix(m_prefix);
|
||||||
updateDevicePixelRatio();
|
|
||||||
|
|
||||||
if (implicitWidth() <= 0) {
|
if (implicitWidth() <= 0) {
|
||||||
setImplicitWidth(m_frameSvg->marginSize(Plasma::Types::LeftMargin) + m_frameSvg->marginSize(Plasma::Types::RightMargin));
|
setImplicitWidth(m_frameSvg->marginSize(Plasma::Types::LeftMargin) + m_frameSvg->marginSize(Plasma::Types::RightMargin));
|
||||||
|
Loading…
Reference in New Issue
Block a user