equal
deleted
inserted
replaced
37 ** |
37 ** |
38 ** $QT_END_LICENSE$ |
38 ** $QT_END_LICENSE$ |
39 ** |
39 ** |
40 ****************************************************************************/ |
40 ****************************************************************************/ |
41 |
41 |
42 #include <qvideowindowcontrol.h> |
42 #include "qvideowindowcontrol.h" |
43 |
43 |
44 QTM_BEGIN_NAMESPACE |
44 QTM_BEGIN_NAMESPACE |
45 |
45 |
46 /*! |
46 /*! |
47 \class QVideoWindowControl |
47 \class QVideoWindowControl |
58 |
58 |
59 \code |
59 \code |
60 QVideoWindowControl *windowControl = mediaService->control<QVideoWindowControl *>(); |
60 QVideoWindowControl *windowControl = mediaService->control<QVideoWindowControl *>(); |
61 windowControl->setWinId(widget->winId()); |
61 windowControl->setWinId(widget->winId()); |
62 windowControl->setDisplayRect(widget->rect()); |
62 windowControl->setDisplayRect(widget->rect()); |
63 windowControl->setAspectRatioMode(QVideoWidget::KeepAspectRatio); |
63 windowControl->setAspectRatioMode(Qt::KeepAspectRatio); |
64 \endcode |
64 \endcode |
65 |
65 |
66 QVideoWindowControl is one of number of possible video output controls, |
66 QVideoWindowControl is one of number of possible video output controls, |
67 in order to receive video it must be made the active video output |
67 in order to receive video it must be made the active video output |
68 control by setting the output property of QVideoOutputControl to \l {QVideoOutputControl::WindowOutput}{WindowOutput}. |
68 control by setting the output property of QVideoOutputControl to \l {QVideoOutputControl::WindowOutput}{WindowOutput}. |
172 |
172 |
173 Returns how video is scaled to fit the display region with respect to its aspect ratio. |
173 Returns how video is scaled to fit the display region with respect to its aspect ratio. |
174 */ |
174 */ |
175 |
175 |
176 /*! |
176 /*! |
177 \fn QVideoWindowControl::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) |
177 \fn QVideoWindowControl::setAspectRatioMode(Qt::AspectRatioMode mode) |
178 |
178 |
179 Sets the aspect ratio \a mode which determines how video is scaled to the fit the display region |
179 Sets the aspect ratio \a mode which determines how video is scaled to the fit the display region |
180 with respect to its aspect ratio. |
180 with respect to its aspect ratio. |
181 */ |
181 */ |
182 |
182 |