aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qquickgridview
Commit message (Collapse)AuthorAgeFilesLines
* QtDeclarative: Fix building of tests on Windows.Friedemann Kleint2011-11-251-1/+1
| | | | | | | Export inner classes, add missing module. Change-Id: Iabc69ac5f08b70ade994c26d36bd08359fa71137 Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* tst_QQuickGridView::unaligned() was failing on macBea Lam2011-11-231-1/+1
| | | | | | | | Failing when threaded renderer is enabled. Ensure remove is applied before testing the result. Change-Id: I156efb43735ee0efd6a6f0b9a721979aafe17605 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Fix inserting before the visible area into cache bufferBea Lam2011-11-221-0/+90
| | | | | | | | | | Items being inserted after the visible index must be created, even if they aren't in view (e.g. are in the cache buffer) otherwise they will not appear at the correct index in the visibleItems list. Task-number: QTBUG-22772 Change-Id: I235dc766a6abf4988872bb70aa40cdc767df8c96 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Try again to fix currentIndex() testBea Lam2011-11-221-0/+1
| | | | | | | | | | Seems that if the threaded renderer is disabled, updatePolish() isn't called on the view until after setCurrentIndex(), so then the view starts at the wrong position and never moves upwards when setCurrentIndex(0) is executed. Change-Id: I74da9de8ac432d27189416287e7ea5937c1d6299 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Fix GridView currentIndex test stabilityMartin Jones2011-11-212-0/+4
| | | | | Change-Id: Ib3a8efdc4447712f9877b70338027efcceff558f Reviewed-by: Bea Lam <bea.lam@nokia.com>
* GridView sometimes lays out one less column than expectedMartin Jones2011-11-212-0/+75
| | | | | | | | | | If the cellWidth/cellHeight was not a whole number the wrapping was unreliable. Calulate column positions more robustly, i.e. avoid comparing values subject to rounding errors. Task-number: QTBUG-21846 Change-Id: Ic3a90b36d542ce8af49461bd524e4405c74aece5 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Mark unstable test to be ignoredAlan Alpert2011-11-181-0/+1
| | | | | | | Task-number: QTBUG-22807 Change-Id: I59b4d49c049756d2d133d1455165d16218042663 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Fix for moving multiple items to top of viewBea Lam2011-11-161-0/+5
| | | | | | | | | | Top item wasn't positioned correctly when moving multiple items backwards to the top of the view. Don't move visibleItems.first() if we've already repositioned the top item correctly. Task-number: QTBUG-22762 Change-Id: Ib216adea719044ee55349478237473ff3194a326 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* GridView should re-layout if add/remove before visible indexBea Lam2011-11-111-0/+87
| | | | | | | | | | Unlike ListView, GridView must redo its layout if an item is added or removed from before the visible items, since it affects the column/row layout. Task-number: QTBUG-21588 Change-Id: Id333bc653033751c45d127973e94fae4580c55b0 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* tst_QSGGridView enforceRange_rightToLeft failsMartin Jones2011-11-091-9/+8
| | | | | | | | | | | Change 9bd6361400a2a4e4045a090de73d70082cc6d1bf corrected the highlight range for right to left layout, i.e. positioned relative to the right. This change fixes the autotest to account for this and fixes flicking in StrictlyEnforceRange mode with RTL layout. Task-number: QTBUG-22162 Change-Id: I133b7e647883e51783bcf54111871451a3a7e67f Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Mark test as failing, remove insignificant test flag.Toby Tomkins2011-10-242-2/+1
| | | | | | | | Task-number: QTBUG-21682 Change-Id: I2f6cbd65b0b364b5fbc014966817652e982f8564 Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Rename Qt Quick-specific classes to QQuick*Kent Hansen2011-10-2122-0/+4142
The QSG (SceneGraph) prefix is too generic for Qt Quick(2)-specific classes. All the classes and files in the declarative/items directory have been renamed. In particular, for classes that are currently public, the renaming is as follows: QSGView --> QQuickView QSGCanvas --> QQuickCanvas QSGItem --> QQuickItem QSGPaintedItem --> QQuickPaintedItem The header files have been renamed accordingly (e.g. qsgview.h --> qquickview.h). Change-Id: Iac937fff81db20bb639486a793c3aeb5230b038c Reviewed-by: Kent Hansen <kent.hansen@nokia.com>