diff options
author | Keith Kyzivat <keith.kyzivat@qt.io> | 2021-06-03 20:06:14 -0400 |
---|---|---|
committer | Keith Kyzivat <keith.kyzivat@qt.io> | 2021-06-04 09:50:54 -0400 |
commit | 500d8ffd45c811b683a7a1bb2d535417d171c71e (patch) | |
tree | a052ee4f3951a82babe757ec16a910f641a710e8 /src | |
parent | b69841fb16dd107454f7eead9e6e7b3db9ed4a2e (diff) |
Remove inner detached legend border
Remove the inner border designating the legend area for resizing.
It is superfluous.
Task-number: QTBUG-93477
Change-Id: I165a1e8153255bda5815ad3b6c44925b5c557c8f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/charts/legend/qlegend.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/charts/legend/qlegend.cpp b/src/charts/legend/qlegend.cpp index 4c481641..49766c6f 100644 --- a/src/charts/legend/qlegend.cpp +++ b/src/charts/legend/qlegend.cpp @@ -312,18 +312,6 @@ void QLegend::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, Q painter->setBrush(d_ptr->m_brush); painter->drawRoundedRect(rect(), d_ptr->roundness(rect().width()), d_ptr->roundness(rect().height()), Qt::RelativeSize); - - // Draw a border slightly larger than the contents rectangle - // of the layout so we don't incur overlap. The border gives the - // impression of a move/resize frame around the legend to the user - // and demarcates its boundaries. - if (!isAttachedToChart()) { - QRectF frameRect = d_ptr->m_layout->contentsRect(); - frameRect.adjust(-1., -1., 1., 1.); - painter->setBrush(Qt::NoBrush); - painter->drawRoundedRect(frameRect, d_ptr->roundness(rect().width()), - d_ptr->roundness(rect().height()), Qt::RelativeSize); - } } |