diff options
author | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-10-07 17:01:25 (GMT) |
---|---|---|
committer | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-10-09 07:10:23 (GMT) |
commit | 1e46018e8e3252c2e28b76ab9e24298a69a75d62 (patch) | |
tree | 44dee428a56e2410597db0ef26c0173c546490a9 /src/3rdparty/phonon/mmf | |
parent | a8e2a457bb7d2fc377c1c65b6a4172974919e055 (diff) | |
download | Qt-1e46018e8e3252c2e28b76ab9e24298a69a75d62.zip Qt-1e46018e8e3252c2e28b76ab9e24298a69a75d62.tar.gz Qt-1e46018e8e3252c2e28b76ab9e24298a69a75d62.tar.bz2 |
Modified video widget to respond to WinIdChange events
Task-number: QTBUG-4664
Reviewed-by: Frans Englich
Diffstat (limited to 'src/3rdparty/phonon/mmf')
-rw-r--r-- | src/3rdparty/phonon/mmf/videooutput.cpp | 11 | ||||
-rw-r--r-- | src/3rdparty/phonon/mmf/videooutput.h | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/3rdparty/phonon/mmf/videooutput.cpp b/src/3rdparty/phonon/mmf/videooutput.cpp index 691c144..0541612 100644 --- a/src/3rdparty/phonon/mmf/videooutput.cpp +++ b/src/3rdparty/phonon/mmf/videooutput.cpp @@ -146,6 +146,17 @@ void MMF::VideoOutput::moveEvent(QMoveEvent* event) videoOutputRegionChanged(); } +bool MMF::VideoOutput::event(QEvent* event) +{ + TRACE_CONTEXT(VideoOutput::event, EVideoInternal); + + if(event->type() == QEvent::WinIdChange) { + TRACE_0("WinIdChange"); + videoOutputRegionChanged(); + return true; + } + else + return QWidget::event(event); } diff --git a/src/3rdparty/phonon/mmf/videooutput.h b/src/3rdparty/phonon/mmf/videooutput.h index 3e58509..7bc0b52 100644 --- a/src/3rdparty/phonon/mmf/videooutput.h +++ b/src/3rdparty/phonon/mmf/videooutput.h @@ -49,6 +49,7 @@ protected: void paintEvent(QPaintEvent* event); void resizeEvent(QResizeEvent* event); void moveEvent(QMoveEvent* event); + bool event(QEvent* event); private: void dump() const; |