Commit 0cdd90dd authored by Ralf Habacker's avatar Ralf Habacker

Fixup shape for alternate combined fragment widget

CCBUG:389357
parent 7a394913
......@@ -501,9 +501,18 @@ QPainterPath CombinedFragmentWidget::shape() const
const qreal w = width();
const qreal h = height();
const qreal s = selectionMarkerSize * resizeMarkerLineCount;
const QFontMetrics &fm = getFontMetrics(FT_NORMAL);
const int fontHeight = fm.lineSpacing();
const qreal r = defaultMargin / 2.0;
const qreal lw = m_labelWidth + r;
const qreal lh = labelHeight + r;
qreal lw = m_labelWidth + r;
qreal lh = labelHeight + r;
if (m_CombinedFragment == Alt) {
const int textWidth = fm.width(name() + QLatin1String("[]"));
lh += fontHeight;
if (lw < textWidth)
lw = textWidth + r;
}
QPainterPath outerPath;
outerPath.setFillRule(Qt::WindingFill);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment