diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-10-25 14:40:19 (GMT) |
---|---|---|
committer | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-10-26 13:23:01 (GMT) |
commit | 00ab5c0d690f5cbb1f588adf0d469e5e9c54051c (patch) | |
tree | c29b673d2be3a8396b6049a6c3e937194f7c0da5 | |
parent | 5d411794d18f33ed8438744216b8ec5095682e20 (diff) | |
download | Qt-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
-rw-r--r-- | src/3rdparty/phonon/mmf/videowidget.cpp | 2 |
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(); } |