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 2e1ef96cf8.

Pick-to: 5.15
Task-number: QTBUG-81497
Change-Id: Ibbb29e17f263ff02d3910852b195b1513b953f75
Reviewed-by: Kai Koehne <kai.koehne@qt.io>
This commit is contained in:
Friedemann Kleint 2020-05-06 16:54:18 +02:00
parent 654cd10755
commit c75151f5d9

View File

@ -56,7 +56,7 @@
#include <QDrag>
#include <QGraphicsSceneMouseEvent>
void main()
void graphicsview_snippet_main()
{
//! [0]
QGraphicsScene scene;