summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/videowidget.cpp
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-01-06 14:52:31 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-01-06 14:52:31 (GMT)
commit216adf3dbe76f3c09340aafee875da28d3f36605 (patch)
tree87baec4b6c73ca569f4bbd74f86010cfa236c75a /src/3rdparty/phonon/mmf/videowidget.cpp
parent66275bc468339ec2599ba660b728304858e30b39 (diff)
parent3f648dc075689e2ffedda2769cc76b4a56fb1073 (diff)
downloadQt-216adf3dbe76f3c09340aafee875da28d3f36605.zip
Qt-216adf3dbe76f3c09340aafee875da28d3f36605.tar.gz
Qt-216adf3dbe76f3c09340aafee875da28d3f36605.tar.bz2
Merge branch 'mmfphonon' into 4.6
Diffstat (limited to 'src/3rdparty/phonon/mmf/videowidget.cpp')
-rw-r--r--src/3rdparty/phonon/mmf/videowidget.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/3rdparty/phonon/mmf/videowidget.cpp b/src/3rdparty/phonon/mmf/videowidget.cpp
index bd22307..bc9acfd 100644
--- a/src/3rdparty/phonon/mmf/videowidget.cpp
+++ b/src/3rdparty/phonon/mmf/videowidget.cpp
@@ -157,10 +157,18 @@ QWidget* MMF::VideoWidget::widget()
return m_videoOutput.data();
}
-bool MMF::VideoWidget::activateOnMediaObject(MediaObject *mo)
+//-----------------------------------------------------------------------------
+// MediaNode
+//-----------------------------------------------------------------------------
+
+void MMF::VideoWidget::connectMediaObject(MediaObject *mediaObject)
+{
+ mediaObject->setVideoOutput(m_videoOutput.data());
+}
+
+void MMF::VideoWidget::disconnectMediaObject(MediaObject *mediaObject)
{
- mo->setVideoOutput(m_videoOutput.data());
- return true;
+ mediaObject->setVideoOutput(0);
}
QT_END_NAMESPACE