summaryrefslogtreecommitdiff
path: root/src/multimedia/doc/snippets/multimedia-snippets
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2013-02-02 02:54:08 +0000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-06 02:55:39 +0100
commitaa2dc1ab4b858485d89745f907879746f8e7a065 (patch)
treedf1e653a725c5c47436641baa6c34f3a5968752e /src/multimedia/doc/snippets/multimedia-snippets
parente9f98742f4f699966c302ca75dd023a914d02012 (diff)
downloadqtmultimedia-aa2dc1ab4b858485d89745f907879746f8e7a065.tar.gz
Add a simple accessor to the video provider snippet
Task-number: QTBUG-29383 Change-Id: I744fb997dae6ad1f9b8075791ad463c8fe23a96d Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Venugopal Shivashankar <venugopal.shivashankar@digia.com>
Diffstat (limited to 'src/multimedia/doc/snippets/multimedia-snippets')
-rw-r--r--src/multimedia/doc/snippets/multimedia-snippets/video.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/multimedia/doc/snippets/multimedia-snippets/video.cpp b/src/multimedia/doc/snippets/multimedia-snippets/video.cpp
index c110e3603..68dca0d01 100644
--- a/src/multimedia/doc/snippets/multimedia-snippets/video.cpp
+++ b/src/multimedia/doc/snippets/multimedia-snippets/video.cpp
@@ -79,9 +79,11 @@ class MyVideoSurface : public QAbstractVideoSurface
class MyVideoProducer : public QObject
{
Q_OBJECT
- Q_PROPERTY(QAbstractVideoSurface *videoSurface WRITE setVideoSurface)
+ Q_PROPERTY(QAbstractVideoSurface *videoSurface READ videoSurface WRITE setVideoSurface)
public:
+ QAbstractVideoSurface* videoSurface() const { return m_surface; }
+
void setVideoSurface(QAbstractVideoSurface *surface)
{
m_surface = surface;