diff options
author | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-08-28 12:24:07 (GMT) |
---|---|---|
committer | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-08-28 12:30:55 (GMT) |
commit | 8987b495c5026976e23d910e68c7892c4c81e586 (patch) | |
tree | b06e3c160e2bd876227aea41a53fde4c5a221e3c /src/3rdparty/phonon/mmf/videooutput.cpp | |
parent | ffe1fb8198b707c1a081f6cf3748e867053d74e3 (diff) | |
download | Qt-8987b495c5026976e23d910e68c7892c4c81e586.zip Qt-8987b495c5026976e23d910e68c7892c4c81e586.tar.gz Qt-8987b495c5026976e23d910e68c7892c4c81e586.tar.bz2 |
Added code to VideoOutput for painting the video region (currently commented out)
Diffstat (limited to 'src/3rdparty/phonon/mmf/videooutput.cpp')
-rw-r--r-- | src/3rdparty/phonon/mmf/videooutput.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/3rdparty/phonon/mmf/videooutput.cpp b/src/3rdparty/phonon/mmf/videooutput.cpp index f9f145a..6810f10 100644 --- a/src/3rdparty/phonon/mmf/videooutput.cpp +++ b/src/3rdparty/phonon/mmf/videooutput.cpp @@ -21,6 +21,7 @@ along with this library. If not, see <http://www.gnu.org/licenses/>. #include "videooutputobserver.h" #include <QPaintEvent> +#include <QPainter> #include <QMoveEvent> #include <QResizeEvent> @@ -153,12 +154,11 @@ QSize MMF::VideoOutput::sizeHint() const if (!m_frameSize.isNull()) { result = m_frameSize; } - + TRACE(" result %d %d", result.width(), result.height()); return result; } -#include <QPainter> // TEMPORARY void MMF::VideoOutput::paintEvent(QPaintEvent* event) { TRACE_CONTEXT(VideoOutput::paintEvent, EVideoInternal); @@ -171,7 +171,8 @@ void MMF::VideoOutput::paintEvent(QPaintEvent* event) /* QPainter painter; painter.begin(this); - painter.setBrush(QColor(0, 0, 0, 0)); + painter.setBrush(QColor(255, 0, 0, 255)); // opaque red + //painter.setBrush(QColor(0, 0, 0, 0)); // transparent black painter.drawRects(event->region().rects()); painter.end(); */ @@ -194,7 +195,7 @@ void MMF::VideoOutput::resizeEvent(QResizeEvent* event) event->size().width(), event->size().height()); QWidget::resizeEvent(event); - + if (m_observer) { m_observer->videoOutputRegionChanged(); } |