diff options
author | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-08-20 16:24:55 (GMT) |
---|---|---|
committer | Gareth Stockwell <gareth.stockwell@sosco.com> | 2009-08-20 16:24:55 (GMT) |
commit | 2150242ddbe66c5d4c440599f1282580be013e61 (patch) | |
tree | d0eefc4aa67a121987f8b74822e558603d3cedc1 /src/3rdparty/phonon/mmf/videowidget.cpp | |
parent | ee990e2ed366a16605afb6a13edd9c59b1bcc33d (diff) | |
download | Qt-2150242ddbe66c5d4c440599f1282580be013e61.zip Qt-2150242ddbe66c5d4c440599f1282580be013e61.tar.gz Qt-2150242ddbe66c5d4c440599f1282580be013e61.tar.bz2 |
Started fleshing out the VideoPlayer implementation
Now loads, prepares and plays a clip, but the video is not visible because it's not yet wired up to a VideoWidget.
Video 'playback' can be tested using the demos/mediaplayer application, but the menus are not displayed properly, so a video clip filename must be hardcoded in main.cpp and passed to the MediaPlayer constructor.
Diffstat (limited to 'src/3rdparty/phonon/mmf/videowidget.cpp')
-rw-r--r-- | src/3rdparty/phonon/mmf/videowidget.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/3rdparty/phonon/mmf/videowidget.cpp b/src/3rdparty/phonon/mmf/videowidget.cpp index 3628470..3438aaa 100644 --- a/src/3rdparty/phonon/mmf/videowidget.cpp +++ b/src/3rdparty/phonon/mmf/videowidget.cpp @@ -40,8 +40,9 @@ static const qreal DefaultSaturation = 1.0; // Constructor / destructor //----------------------------------------------------------------------------- -MMF::VideoWidget::VideoWidget() - : m_aspectRatio(DefaultAspectRatio) +MMF::VideoWidget::VideoWidget(QWidget* parent) + : QWidget(parent) + , m_aspectRatio(DefaultAspectRatio) , m_brightness(DefaultBrightness) , m_scaleMode(DefaultScaleMode) , m_contrast(DefaultContrast) |