Support margins in Flickable.
authorMartin Jones <martin.jones@nokia.com>
Fri, 23 Sep 2011 06:13:51 +0000 (16:13 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 26 Sep 2011 01:24:42 +0000 (03:24 +0200)
commit14228a41471a327f6e600220a795a1c6cb23c2b2
treec7c9f127b8dfc9f9e608ab421a692be7896d0c18
parent2790f9b1d5488f7f29903408eaa5d2a6118f55ee
Support margins in Flickable.

It is sometimes desireable to leave a margin/add decoration around the
content of a Flickable.  This adds topMargin, leftMargin, bottomMargin
rightMargin, xOrigin and yOrigin properties to Flickable.

Task-number: QTBUG-21362
Change-Id: Ia24ea4c63e7a8de683b68100baac782c6f3a66bb
Reviewed-on: http://codereview.qt-project.org/5445
Reviewed-by: Bea Lam <bea.lam@nokia.com>
13 files changed:
doc/src/declarative/whatsnew.qdoc
src/declarative/items/qsgflickable.cpp
src/declarative/items/qsgflickable_p.h
src/declarative/items/qsgflickable_p_p.h
src/declarative/items/qsgitemview.cpp
src/declarative/items/qsgitemview_p.h
src/declarative/items/qsgitemview_p_p.h
tests/auto/declarative/qsgflickable/data/margins.qml [new file with mode: 0644]
tests/auto/declarative/qsgflickable/tst_qsgflickable.cpp
tests/auto/declarative/qsggridview/data/margins.qml [new file with mode: 0644]
tests/auto/declarative/qsggridview/tst_qsggridview.cpp
tests/auto/declarative/qsglistview/data/margins.qml [new file with mode: 0644]
tests/auto/declarative/qsglistview/tst_qsglistview.cpp