summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2012-06-20 14:34:18 +0100
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2012-10-21 17:07:10 +0300
commitd122b4d648ec6b4ec511605ee61b2bbd635f0770 (patch)
treece32fc3d7122965a0bef247f9e58229f3c344088
parent7aa682a4021211d0438b76e0bcd1b9d63b5db1c1 (diff)
graphicsvideosurface.h: Fix example code
Create a QGraphicsScene as QGraphicsView doesnt have an addItem method
-rw-r--r--src/QGst/Ui/graphicsvideosurface.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/QGst/Ui/graphicsvideosurface.h b/src/QGst/Ui/graphicsvideosurface.h
index bd17749..c22b110 100644
--- a/src/QGst/Ui/graphicsvideosurface.h
+++ b/src/QGst/Ui/graphicsvideosurface.h
@@ -38,13 +38,14 @@ class GraphicsVideoSurfacePrivate;
*
* Example
* \code
- * QGraphicsView *view = new QGraphicsView;
+ * QGraphicsScene *scene = new QGraphicsScene;
+ * QGraphicsView *view = new QGraphicsView (scene);
* view->setViewport(new QGLWidget); //recommended
* QGst::Ui::GraphicsVideoSurface *surface = new QGst::Ui::GraphicsVideoSurface(view);
* ...
* QGst::Ui::GraphicsVideoWidget *widget = new QGst::Ui::GraphicsVideoWidget;
* widget->setSurface(surface);
- * view->addItem(widget);
+ * scene->addItem(widget);
* \endcode
*
* This class internally creates and uses either a "qtglvideosink" or a "qtvideosink"