diff options
author | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-09-01 10:32:07 (GMT) |
---|---|---|
committer | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-09-01 10:32:07 (GMT) |
commit | 65c8d29d8bad265a236431ab57b03f7b2614c53a (patch) | |
tree | ba0abcfe27a74ad3f5a1f761c02ce43ab9fe2977 /src/3rdparty/phonon/mmf/videooutput.cpp | |
parent | 74b5571063e70f6be8ff5f2bee25ef61ad179f73 (diff) | |
parent | 44d641dec7972cdf30f9f4445e2de3416224de89 (diff) | |
download | Qt-65c8d29d8bad265a236431ab57b03f7b2614c53a.zip Qt-65c8d29d8bad265a236431ab57b03f7b2614c53a.tar.gz Qt-65c8d29d8bad265a236431ab57b03f7b2614c53a.tar.bz2 |
Merge branch 'mmfphonon' of git@scm.dev.nokia.troll.no:qt/qt-s60-public into mmfphonon
Diffstat (limited to 'src/3rdparty/phonon/mmf/videooutput.cpp')
-rw-r--r-- | src/3rdparty/phonon/mmf/videooutput.cpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/3rdparty/phonon/mmf/videooutput.cpp b/src/3rdparty/phonon/mmf/videooutput.cpp index ef5b154..c517c22 100644 --- a/src/3rdparty/phonon/mmf/videooutput.cpp +++ b/src/3rdparty/phonon/mmf/videooutput.cpp @@ -42,16 +42,10 @@ MMF::VideoOutput::VideoOutput(QWidget* parent) TRACE_ENTRY("parent 0x%08x", parent); #ifndef PHONON_MMF_VIDEOOUTPUT_IS_QWIDGET - QPalette palette(Qt::black); - //palette.setColor(QPalette::Window, Qt::transparent); - setPalette(palette); - - // Widget redraws all of its pixels when it receives a paint event, so Qt - // does not need to erase it before generating paint events. - setAttribute(Qt::WA_OpaquePaintEvent, true); - - //setAttribute(Qt::WA_NoSystemBackground, true); - //setAutoFillBackground(false); + setPalette(QPalette(Qt::black)); + //setAttribute(Qt::WA_OpaquePaintEvent, true); + setAttribute(Qt::WA_NoSystemBackground, true); + setAutoFillBackground(false); #endif // PHONON_MMF_VIDEOOUTPUT_IS_QWIDGET #ifdef PHONON_MMF_DEBUG_VIDEO_OUTPUT @@ -158,7 +152,7 @@ QSize MMF::VideoOutput::sizeHint() const if (!m_frameSize.isNull()) { result = m_frameSize; } - + TRACE(" result %d %d", result.width(), result.height()); return result; } @@ -172,11 +166,13 @@ void MMF::VideoOutput::paintEvent(QPaintEvent* event) TRACE("regions %d", event->region().numRects()); TRACE("type %d", event->type()); +/* QPainter painter; painter.begin(this); painter.setBrush(QColor(0, 0, 0, 255)); // opaque black painter.drawRects(event->region().rects()); painter.end(); +*/ } void MMF::VideoOutput::resizeEvent(QResizeEvent* event) @@ -187,7 +183,7 @@ void MMF::VideoOutput::resizeEvent(QResizeEvent* event) event->size().width(), event->size().height()); QWidget::resizeEvent(event); - + if (m_observer) m_observer->videoOutputRegionChanged(); } |