summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-10-25 14:40:19 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-10-26 13:23:01 (GMT)
commit00ab5c0d690f5cbb1f588adf0d469e5e9c54051c (patch)
treec29b673d2be3a8396b6049a6c3e937194f7c0da5 /src/3rdparty/phonon
parent5d411794d18f33ed8438744216b8ec5095682e20 (diff)
downloadQt-00ab5c0d690f5cbb1f588adf0d469e5e9c54051c.zip
Qt-00ab5c0d690f5cbb1f588adf0d469e5e9c54051c.tar.gz
Qt-00ab5c0d690f5cbb1f588adf0d469e5e9c54051c.tar.bz2
Phonon MMF backend: set _q_DummyWindowSurface property on VideoWidget
This prevents a window surface being created if Phonon::VideoWidget::setFullScreen(true) is called. Since Qt does not ever render any content to the native window in which video is displayed, creation of a surface for that window would consume memory unnecessarily. Task-number: MOBILITY-1315 Reviewed-by: Jason Barron
Diffstat (limited to 'src/3rdparty/phonon')
-rw-r--r--src/3rdparty/phonon/mmf/videowidget.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/3rdparty/phonon/mmf/videowidget.cpp b/src/3rdparty/phonon/mmf/videowidget.cpp
index 122094e..d59e82a 100644
--- a/src/3rdparty/phonon/mmf/videowidget.cpp
+++ b/src/3rdparty/phonon/mmf/videowidget.cpp
@@ -65,6 +65,8 @@ MMF::VideoWidget::VideoWidget(QWidget *parent)
TRACE_CONTEXT(VideoWidget::VideoWidget, EVideoApi);
TRACE_ENTRY_0();
+ parent->setProperty("_q_DummyWindowSurface", true);
+
TRACE_EXIT_0();
}