Add a rendered and content rectangle properties to VideoOutput QML.

So you can align controls with an edge of the rendered area.  There's
also some convenience functions for mapping source to and from
destination coordinates. Also tweaked the updateGeometry function to
bail out if no input parameters have changed, rather than doing some
more boring maths.

Added a unit test for a lot of the class, too.

Change-Id: I943bb45e4e56356247d5d6deb5d446222edcb7ca
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
This commit is contained in:
Michael Goddard
2012-01-20 15:51:22 +10:00
committed by Qt by Nokia
parent 3b00730eca
commit bad94a5329
6 changed files with 1039 additions and 24 deletions

View File

@@ -0,0 +1,13 @@
CONFIG += testcase
TARGET = tst_qdeclarativevideooutput
QT += multimedia-private declarative testlib quick
CONFIG += no_private_qt_headers_warning
OTHER_FILES += \
../../../../src/imports/multimedia/qdeclarativevideooutput_p.h
SOURCES += \
tst_qdeclarativevideooutput.cpp
INCLUDEPATH += ../../../../src/imports/multimedia