summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/videooutput.cpp
diff options
context:
space:
mode:
authorGareth Stockwell <gareth.stockwell@sosco.com>2009-08-28 12:24:07 (GMT)
committerGareth Stockwell <gareth.stockwell@sosco.com>2009-08-28 12:30:55 (GMT)
commit8987b495c5026976e23d910e68c7892c4c81e586 (patch)
treeb06e3c160e2bd876227aea41a53fde4c5a221e3c /src/3rdparty/phonon/mmf/videooutput.cpp
parentffe1fb8198b707c1a081f6cf3748e867053d74e3 (diff)
downloadQt-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.cpp9
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();
}