source: trunk/src/3rdparty/phonon/mmf/abstractvideooutput.cpp@ 769

Last change on this file since 769 was 769, checked in by Dmitry A. Kuminov, 15 years ago

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

File size: 5.0 KB
Line 
1/* This file is part of the KDE project.
2
3Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4
5This library is free software: you can redistribute it and/or modify
6it under the terms of the GNU Lesser General Public License as published by
7the Free Software Foundation, either version 2.1 or 3 of the License.
8
9This library is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU Lesser General Public License for more details.
13
14You should have received a copy of the GNU Lesser General Public License
15along with this library. If not, see <http://www.gnu.org/licenses/>.
16
17*/
18
19#include "abstractvideooutput.h"
20#include "utils.h"
21
22#ifndef QT_NO_DEBUG
23#include "objectdump.h"
24#endif
25
26#include <QtCore/private/qcore_symbian_p.h> // for qt_TSize2QSize
27
28#include <QMoveEvent>
29#include <QResizeEvent>
30
31#include <QApplication> // for QApplication::activeWindow
32
33#include <coecntrl.h>
34
35QT_BEGIN_NAMESPACE
36
37using namespace Phonon;
38using namespace Phonon::MMF;
39
40/*! \class MMF::AbstractVideoOutput
41 \internal
42*/
43
44//-----------------------------------------------------------------------------
45// Constants
46//-----------------------------------------------------------------------------
47
48static const Phonon::VideoWidget::AspectRatio DefaultAspectRatio =
49 Phonon::VideoWidget::AspectRatioAuto;
50static const Phonon::VideoWidget::ScaleMode DefaultScaleMode =
51 Phonon::VideoWidget::FitInView;
52
53
54//-----------------------------------------------------------------------------
55// Constructor / destructor
56//-----------------------------------------------------------------------------
57
58MMF::AbstractVideoOutput::AbstractVideoOutput(QWidget *parent)
59 : QWidget(parent)
60 , m_aspectRatio(DefaultAspectRatio)
61 , m_scaleMode(DefaultScaleMode)
62{
63
64}