summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2016-08-17 08:42:37 +0200
committerShawn Rutledge <shawn.rutledge@qt.io>2016-08-17 20:11:38 +0000
commit286dbc48bd345d75f61fc3d64ce3d5495d602cb9 (patch)
tree492a406dce754ded8ca8e9f5cdf6c1d429083a80 /examples
parentf2ba71dd55736fc2ff1d817c19d5295d70b49c07 (diff)
softwarerenderer example: fix ambiguous reference to QQuickItem
GCC 6 says (with paths trimmed) In file included from customrenderitem.cpp:47:0: softwarerenderer.h:51:35: error: expected ')' before '*' token softwarerenderer.h:61:5: error: reference to 'QQuickItem' is ambiguous Change-Id: I70b328426ac48f5f6140d1ad4f015858979b99a5 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/scenegraph/rendernode/softwarerenderer.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/quick/scenegraph/rendernode/softwarerenderer.h b/examples/quick/scenegraph/rendernode/softwarerenderer.h
index 5b2a475ed8..e91ca92d88 100644
--- a/examples/quick/scenegraph/rendernode/softwarerenderer.h
+++ b/examples/quick/scenegraph/rendernode/softwarerenderer.h
@@ -42,8 +42,7 @@
#define SOFTWARERENDERER_H
#include <qsgrendernode.h>
-
-class QQuickItem;
+#include <QQuickItem>
class SoftwareRenderNode : public QSGRenderNode
{