From a410276d0d0888380a09d50fd80cf85429f04f6b Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 16 Oct 2012 15:46:46 +0200 Subject: [PATCH] Compile after removal of compatibility code in QtQuick. qtdeclarative: f21e9ba6efa2b1c8169491db271f79b87b5b0ce4 removed QQuickCanvas. Change-Id: Ica8ae4d816d1ca08f08d299cec741837a1a77c50 Reviewed-by: Thomas McGuire Reviewed-by: Kai Koehne --- src/imports/multimedia/qdeclarativevideooutput_window.cpp | 6 +++--- .../tst_qdeclarativevideooutput_window.cpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/imports/multimedia/qdeclarativevideooutput_window.cpp b/src/imports/multimedia/qdeclarativevideooutput_window.cpp index 0fe32b3..527c089 100644 --- a/src/imports/multimedia/qdeclarativevideooutput_window.cpp +++ b/src/imports/multimedia/qdeclarativevideooutput_window.cpp @@ -41,7 +41,7 @@ #include "qdeclarativevideooutput_window_p.h" #include "qdeclarativevideooutput_p.h" -#include +#include #include #include @@ -63,8 +63,8 @@ bool QDeclarativeVideoWindowBackend::init(QMediaService *service) { if (QMediaControl *control = service->requestControl(QVideoWindowControl_iid)) { if ((m_videoWindowControl = qobject_cast(control))) { - if (q->canvas()) - m_videoWindowControl->setWinId(q->canvas()->winId()); + if (q->window()) + m_videoWindowControl->setWinId(q->window()->winId()); m_service = service; QObject::connect(m_videoWindowControl.data(), SIGNAL(nativeSizeChanged()), q, SLOT(_q_updateNativeSize())); diff --git a/tests/auto/integration/qdeclarativevideooutput_window/tst_qdeclarativevideooutput_window.cpp b/tests/auto/integration/qdeclarativevideooutput_window/tst_qdeclarativevideooutput_window.cpp index 55e00ad..8613753 100644 --- a/tests/auto/integration/qdeclarativevideooutput_window/tst_qdeclarativevideooutput_window.cpp +++ b/tests/auto/integration/qdeclarativevideooutput_window/tst_qdeclarativevideooutput_window.cpp @@ -226,7 +226,7 @@ void tst_QDeclarativeVideoOutputWindow::initTestCase() m_rootItem.reset(qobject_cast(component.create())); m_videoItem = m_rootItem->findChild("videoOutput"); QVERIFY(m_videoItem); - m_rootItem->setParentItem(m_view.rootItem()); + m_rootItem->setParentItem(m_view.contentItem()); m_videoItem->setProperty("source", QVariant::fromValue(&m_sourceObject)); m_windowControl.setNativeSize(QSize(400, 200)); -- 2.7.4