diff options
| author | Volker Hilsheimer <[email protected]> | 2020-05-29 11:33:33 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <[email protected]> | 2020-05-29 16:58:43 +0200 |
| commit | 743c7234df3be9ea1404b6eb26b753d327ce66c0 (patch) | |
| tree | e2e56d29f321f58ddb0e90add63636098a1e1a7e /src | |
| parent | 37eb5d38aaff693a9ab48b32b6f4c13aac5f827c (diff) | |
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 <[email protected]>
Diffstat (limited to 'src')
| -rw-r--r-- | src/widgets/graphicsview/qgraphicsitem.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/widgets/graphicsview/qgraphicsitem.cpp b/src/widgets/graphicsview/qgraphicsitem.cpp index 42f997b1041..bfe1e89edcd 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)); |
