Put compose over border onto the slow path that renders the entire item
This commit is contained in:
parent
09e23eb675
commit
2bf3466b53
@ -305,6 +305,11 @@ void FrameSvgItem::geometryChanged(const QRectF &newGeometry,
|
|||||||
|
|
||||||
void FrameSvgItem::doUpdate()
|
void FrameSvgItem::doUpdate()
|
||||||
{
|
{
|
||||||
|
FrameData *frame = frameData();
|
||||||
|
if (!frame) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
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));
|
||||||
}
|
}
|
||||||
@ -314,7 +319,7 @@ void FrameSvgItem::doUpdate()
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool hasOverlay = !actualPrefix().startsWith(QLatin1String("mask-")) && m_frameSvg->hasElement(actualPrefix() % "overlay");
|
bool hasOverlay = !actualPrefix().startsWith(QLatin1String("mask-")) && m_frameSvg->hasElement(actualPrefix() % "overlay");
|
||||||
m_fastPath = !hasOverlay;
|
m_fastPath = !hasOverlay && !frame->composeOverBorder;
|
||||||
m_textureChanged = true;
|
m_textureChanged = true;
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user