| 1 | /* This file is part of the KDE project.
|
|---|
| 2 |
|
|---|
| 3 | Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|---|
| 4 |
|
|---|
| 5 | This library is free software: you can redistribute it and/or modify
|
|---|
| 6 | it under the terms of the GNU Lesser General Public License as published by
|
|---|
| 7 | the Free Software Foundation, either version 2.1 or 3 of the License.
|
|---|
| 8 |
|
|---|
| 9 | This library is distributed in the hope that it will be useful,
|
|---|
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 12 | GNU Lesser General Public License for more details.
|
|---|
| 13 |
|
|---|
| 14 | You should have received a copy of the GNU Lesser General Public License
|
|---|
| 15 | along 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 |
|
|---|
| 35 | QT_BEGIN_NAMESPACE
|
|---|
| 36 |
|
|---|
| 37 | using namespace Phonon;
|
|---|
| 38 | using namespace Phonon::MMF;
|
|---|
| 39 |
|
|---|
| 40 | /*! \class MMF::AbstractVideoOutput
|
|---|
| 41 | \internal
|
|---|
| 42 | */
|
|---|
| 43 |
|
|---|
| 44 | //-----------------------------------------------------------------------------
|
|---|
| 45 | // Constants
|
|---|
| 46 | //-----------------------------------------------------------------------------
|
|---|
| 47 |
|
|---|
| 48 | static const Phonon::VideoWidget::AspectRatio DefaultAspectRatio =
|
|---|
| 49 | Phonon::VideoWidget::AspectRatioAuto;
|
|---|
| 50 | static const Phonon::VideoWidget::ScaleMode DefaultScaleMode =
|
|---|
| 51 | Phonon::VideoWidget::FitInView;
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 | //-----------------------------------------------------------------------------
|
|---|
| 55 | // Constructor / destructor
|
|---|
| 56 | //-----------------------------------------------------------------------------
|
|---|
| 57 |
|
|---|
| 58 | MMF::AbstractVideoOutput::AbstractVideoOutput(QWidget *parent)
|
|---|
| 59 | : QWidget(parent)
|
|---|
| 60 | , m_aspectRatio(DefaultAspectRatio)
|
|---|
| 61 | , m_scaleMode(DefaultScaleMode)
|
|---|
| 62 | {
|
|---|
| 63 |
|
|---|
| 64 | }
|
|---|
|
|---|