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 <lars.knoll@qt.io>
This commit is contained in:
Volker Hilsheimer 2020-05-29 11:33:33 +02:00
parent 37eb5d38aa
commit 743c7234df

View File

@ -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));