diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2010-03-18 05:09:01 (GMT) |
---|---|---|
committer | Andrew den Exter <andrew.den-exter@nokia.com> | 2010-03-18 05:10:46 (GMT) |
commit | 00dea4c917e8bbc598ba5a5afe90280fd4e5bf8a (patch) | |
tree | c76cd7e711773a5f6104425fd86c9b9f71ac27d1 /src/plugins/mediaservices/gstreamer/qgstreamervideooverlay.cpp | |
parent | 19c41b7de6596453f16d52f05953b153cd40e36e (diff) | |
download | Qt-00dea4c917e8bbc598ba5a5afe90280fd4e5bf8a.zip Qt-00dea4c917e8bbc598ba5a5afe90280fd4e5bf8a.tar.gz Qt-00dea4c917e8bbc598ba5a5afe90280fd4e5bf8a.tar.bz2 |
Replace AspectRatioMode enum from QVideoWidget with Qt::AspectRatioMode.
Task-number: QTBUG-9118
Reviewed-by: Dmytro Poplavskiy
Diffstat (limited to 'src/plugins/mediaservices/gstreamer/qgstreamervideooverlay.cpp')
-rw-r--r-- | src/plugins/mediaservices/gstreamer/qgstreamervideooverlay.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/mediaservices/gstreamer/qgstreamervideooverlay.cpp b/src/plugins/mediaservices/gstreamer/qgstreamervideooverlay.cpp index 846a24a..427d514 100644 --- a/src/plugins/mediaservices/gstreamer/qgstreamervideooverlay.cpp +++ b/src/plugins/mediaservices/gstreamer/qgstreamervideooverlay.cpp @@ -52,7 +52,7 @@ QGstreamerVideoOverlay::QGstreamerVideoOverlay(QObject *parent) : QVideoWindowControl(parent) , m_surface(new QX11VideoSurface) , m_videoSink(reinterpret_cast<GstElement*>(QVideoSurfaceGstSink::createSink(m_surface))) - , m_aspectRatioMode(QVideoWidget::KeepAspectRatio) + , m_aspectRatioMode(Qt::KeepAspectRatio) , m_fullScreen(false) { if (m_videoSink) { @@ -94,12 +94,12 @@ void QGstreamerVideoOverlay::setDisplayRect(const QRect &rect) setScaledDisplayRect(); } -QVideoWidget::AspectRatioMode QGstreamerVideoOverlay::aspectRatioMode() const +Qt::AspectRatioMode QGstreamerVideoOverlay::aspectRatioMode() const { return m_aspectRatioMode; } -void QGstreamerVideoOverlay::setAspectRatioMode(QVideoWidget::AspectRatioMode mode) +void QGstreamerVideoOverlay::setAspectRatioMode(Qt::AspectRatioMode mode) { m_aspectRatioMode = mode; @@ -193,7 +193,7 @@ void QGstreamerVideoOverlay::surfaceFormatChanged() void QGstreamerVideoOverlay::setScaledDisplayRect() { switch (m_aspectRatioMode) { - case QVideoWidget::KeepAspectRatio: + case Qt::KeepAspectRatio: { QSize size = m_surface->surfaceFormat().viewport().size(); @@ -205,7 +205,7 @@ void QGstreamerVideoOverlay::setScaledDisplayRect() m_surface->setDisplayRect(rect); } break; - case QVideoWidget::IgnoreAspectRatio: + case Qt::IgnoreAspectRatio: m_surface->setDisplayRect(m_displayRect); break; }; |