From 743c7234df3be9ea1404b6eb26b753d327ce66c0 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Fri, 29 May 2020 11:33:33 +0200 Subject: [PATCH] Export the highlighter function so that we can use it in QtSvgWidgets That allows us to remove the copy of that function in QtSvgWidgets. Change-Id: I99d54408781c99b877c4df8fc9fc5f4139dcebb2 Reviewed-by: Lars Knoll --- src/widgets/graphicsview/qgraphicsitem.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/widgets/graphicsview/qgraphicsitem.cpp b/src/widgets/graphicsview/qgraphicsitem.cpp index 42f997b104..bfe1e89edc 100644 --- a/src/widgets/graphicsview/qgraphicsitem.cpp +++ b/src/widgets/graphicsview/qgraphicsitem.cpp @@ -7530,11 +7530,8 @@ void QGraphicsItem::prepareGeometryChange() \internal Highlights \a item as selected. - - NOTE: This function is a duplicate of qt_graphicsItem_highlightSelected() in - qgraphicssvgitem.cpp! */ -static void qt_graphicsItem_highlightSelected( +void Q_WIDGETS_EXPORT qt_graphicsItem_highlightSelected( QGraphicsItem *item, QPainter *painter, const QStyleOptionGraphicsItem *option) { const QRectF murect = painter->transform().mapRect(QRectF(0, 0, 1, 1));