summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/graphicsview.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2020-05-06 16:54:18 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-05-07 06:36:59 +0000
commitc75151f5d9285b6a43a5434e422e19841cac061a (patch)
treeb8c03748f00b5c68046cd84c65d355c954b07840 /src/widgets/doc/snippets/graphicsview.cpp
parent654cd10755a7c9e2fe865a76e237eb6f46e778b8 (diff)
Fix build of the widgets doc snippets
Rename main() of the graphicsview.cpp snippet to ensure it is not considered a real main() function and prevent future duplicate symbols. Amends 2e1ef96cf8316c9e04303c70ce5bef1c86223ef8. Pick-to: 5.15 Task-number: QTBUG-81497 Change-Id: Ibbb29e17f263ff02d3910852b195b1513b953f75 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
Diffstat (limited to 'src/widgets/doc/snippets/graphicsview.cpp')
-rw-r--r--src/widgets/doc/snippets/graphicsview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/doc/snippets/graphicsview.cpp b/src/widgets/doc/snippets/graphicsview.cpp
index 41e8cd2a4f..37947b4a35 100644
--- a/src/widgets/doc/snippets/graphicsview.cpp
+++ b/src/widgets/doc/snippets/graphicsview.cpp
@@ -56,7 +56,7 @@
#include <QDrag>
#include <QGraphicsSceneMouseEvent>
-void main()
+void graphicsview_snippet_main()
{
//! [0]
QGraphicsScene scene;