summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativepathview
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into ↵Qt Continuous Integration System2011-05-171-17/+17
|\ | | | | | | | | | | | | | | | | | | | | | | 4.7-integration * '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1: Updating file with CRLF line endings for the updated header Fix a regression in QList::mid() update gitignore remove -fno-stack-protector Fix make confclean Update licenseheader text in source files
| * Update licenseheader text in source filesJyri Tahtela2011-05-131-17/+17
| | | | | | | | | | | | | | Updated version of LGPL and FDL licenseheaders. Apply release phase licenseheaders for all source files. Reviewed-by: Trust Me
* | Views do not notify count changes properlyMartin Jones2011-05-053-0/+6
|/ | | | | | | | | | | The views don't have a valid count until both a model and a delegate are provided. But, countChanged() is not called when a delegate is set after the model, so bindings to count were not evaluated. Also test that count is updated for insertion/removal Change-Id: Ic82039a624c02f0bdb2862ac7a6e215df75bb314 Task-number: QTBUG-19037 Reviewed-by: Bea Lam
* PathView offset out of sync with currentIndex when items are removed.Martin Jones2011-04-271-0/+10
| | | | | | | | | If the view is animating due to currentIndex change and items are removed the target offset must be recalculated. Change-Id: Iee105712488070c086a24561a49daf17bcf14076 Task-number: QTBUG-18825 Reviewed-by: Michael Brasser
* PathView doesn't update if preferred highlight range changes.Martin Jones2011-03-172-1/+41
| | | | | | | | Simply call refill() when they change. Change-Id: I45ab56cbcaf5c726ce4c4f23f66ee687a6d89dad Task-number: QTBUG-15356 Reviewed-by: Kevin Wu Won
* PathView items were not correctly updated when rootIndex changed.Martin Jones2011-02-102-0/+67
| | | | | | | | | | | | | PathView got confused because it queried the model when removing items due to the rootIndex change. This caused new items to be added since the model->count() was not zero (it was the count for the new rootIndex). Calculate the PathView modelCount similarly to the other views (rather than querying the model) and correctly handle the modelCount being set to zero. Change-Id: I9e4fb27c14aa8c77ad37ff01d95c123f909db20d Task-number: QTBUG-16366 Reviewed-by: Bea Lam
* PathView regression: dragging the path didn't update currentIndexMartin Jones2011-02-092-0/+52
| | | | | | | | | | Some refectoring while fixing QTBUG-13687 resulted in the private setOffset() method being called rather than the public. The public version was responsible for updating currentIndex. Change-Id: Iac9c7a19d6fa64550b9498e77b8983512e199370 Task-number: QTBUG-17319 Reviewed-by: Michael Brasser
* Update copyright year to 2011.Jason McDonald2011-01-101-1/+1
| | | | Reviewed-by: Trust Me
* PathView crashed when the path is provided with undefined values.Martin Jones2011-01-062-0/+31
| | | | | Task-number: QTBUG-16356 Reviewed-by: Bea Lam
* PathView: update modelCount before attempting to regenerate delegates.Martin Jones2011-01-062-0/+42
| | | | | | | | | If the model is a VisualDataModel, the count will initally be zero and modelCount is not updated due to itemsInserted() before the component is completed. Task-number: QTBUG-16357 Reviewed-by: Bea Lam
* PathView: removing the currentIndex could make it invalid.Martin Jones2010-12-101-0/+4
| | | | | | | | Removing the currentIndex could result in currentIndex being > than the number of items in the model. Task-number: QTBUG-15926 Reviewed-by: Michael Brasser
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-10-071-1/+1
|\
| * Update import statement.Michael Brasser2010-10-061-1/+1
| |
* | Fix setting PathView offset when all visible items are removed.Martin Jones2010-10-071-1/+10
|/ | | | | | | | If we remove all items then we don't have a valid firstIndex with which to anchor item positions, so just use offset. Task-number: QTBUG-14199 Reviewed-by: Michael Brasser
* Ensure PathView updates positions when path changes.Michael Brasser2010-10-062-0/+36
| | | | | | | | Fixes regression caused by optimization added in commit 35a51442ed21f58c06b21293eeb56e843251ee82. Task-number: QTBUG-14239 Reviewed-by: Martin Jones
* Improve test coverage for declarative module.Michael Brasser2010-10-043-0/+55
| | | | Add additional autotests, and remove unreachable functions.
* Replace all occurances of "Qt 4.7" with "QtQuick 1.0"Aaron Kennedy2010-09-2912-12/+12
| | | | | Task-number: QTBUG-13799 Reviewed-by: Martin Jones
* Moving items in a PathView caused PathView.onPath to be set to false.Martin Jones2010-09-172-8/+16
| | | | | | | | Check that we no longer hold a reference to the item before setting onPath to false. Task-number: QTBUG-13689 Reviewed-by: Michael Brasser
* Fix PathView item position on insertion and removal.Martin Jones2010-09-061-8/+11
| | | | | | | Ensure the offset is adjusted to account for the new or removed items. Also minor optimizations to delegate updates. Task-number: QTBUG-13416
* Fix PathView when setting an empty model that is later filled.Michael Brasser2010-08-242-1/+28
| | | | | Task-number: QTBUG-13017 Reviewed-by: Martin Jones
* Always place PathView delegates centered on the pathMartin Jones2010-07-192-0/+10
| | | | | | | | | | The scale of the delegate was used to offset the item. This was a bad way of making the item appear to be positioned correctly when the default transform origin was the top-left. Now that transform origin is center, it is obvious that it was a bad idea. Task-number: QTBUG-12245 Reviewed-by: Michael Brasser
* Make declarative autotests compile on Symbian abld build systemJoona Petrell2010-06-082-3/+6
| | | | | Task-number: Reviewed-by: Martin Jones
* If a pathview delegate changes size, reposition center on pathMartin Jones2010-05-272-2/+10
| | | | Task-number: QTBUG-11006
* Remove license headers from test data.Warwick Allison2010-05-2310-410/+0
| | | | Partial revert of d5a86d924bfe331aeba6465b0f249cd27ef83ad4
* Add license headers for .qml files.Jason McDonald2010-05-2110-0/+410
| | | | | | | Examples get the BSD license, while all other .qml files get the LGPL/tech-preview license. Reviewed-by: Trust Me
* Add parent parameter to QDeclarativeExpression constructor.Michael Brasser2010-05-181-1/+1
| | | | Also rearrange the parameter order to be more clear.
* Symbian build fix to declarative auto and benchmark testsJoona Petrell2010-05-141-1/+8
| | | | | Task-number: QTBUG-9491 Reviewed-by: Martin Jones
* Add an example spinner.Martin Jones2010-05-131-3/+27
| | | | | Also add missing increment/decrementCurrentIndex() slots to PathView, and tweak the number of points cached along a Path.
* Ensure PathView "attribute" attached properties are created correctlyMartin Jones2010-05-112-0/+105
| | | | | | | | If an item was created spontaneously (i.e. delegate is a package and some other view created the item), ensure its attached properties are correctly initialized. Task-number: QTBUG-10527
* Fix path view update on startX(Y) changes in qmlLeonardo Sobral Cunha2010-04-292-0/+61
| | | | | Task-number: QTBUG-10290 Reviewed-by: Michael Brasser
* Rename QDeclarativeExpression::value() to evaluate().Michael Brasser2010-04-221-1/+1
| | | | | QDeclarativeExpression can be used to evaluate any sort of expression, not just those returning a value.
* Fix versioning of Qt Declarative's in-built typesAlan Alpert2010-04-218-8/+8
| | | | | | Since we aren't releasing for 4.6, all types are new in 4.7. Task-number: QTBUG-10081
* Rename remaining import Qt 4.6 lines to import Qt 4.7Joona Petrell2010-04-141-1/+1
| | | | | Task-number: Reviewed-by: Martin Jones
* Tweak tests to run in parallelAaron Kennedy2010-04-131-0/+3
|
* Added highlight ranges/modes to PathViewMartin Jones2010-03-265-12/+16
| | | | Task-number: QT-319
* Begin dragging PathView up to the level (quality and functionality) of other ↵Martin Jones2010-03-253-7/+22
| | | | | | views. Task-number: QT-319
* Fix tests after 47fb07c9fdf47584ae55f3412102bbeef5576b04.Michael Brasser2010-03-183-4/+4
| | | | | The import order has changed, so test files that mirror element names needed to be renamed (or they would resolve as the type).
* Change PathView offset property to use range 0 - 1.0Martin Jones2010-03-122-4/+4
|
* Add PathView.isCurrentIndex and PathView.view attached propertiesMartin Jones2010-03-082-3/+54
| | | | | | Adding PathView attached properties to be in line with other views. Task-number: QT-319
* Add NOTIFY signals to list, grid and path viewsJoona Petrell2010-03-025-11/+277
| | | | Reviewed-by: akennedy
* Make "on" syntax mandatory for value sources and interceptorsAaron Kennedy2010-03-022-2/+2
| | | | | | | | | | | | | | | | | | | | | Where you would have written x: NumberAnimation {} y: Behavior {} you now must write NumberAnimation on x {} Behavior on y {} This change also makes the parser more strict with respect to multiple assignments to a single property - they're no longer allowed. For example this x: 10 x: 11 is now an error.
* React to QAbstractItemModel::modelReset() signal.Martin Jones2010-02-252-0/+101
| | | | Task-number: QTBUG-8494
* Change autotest class prefix from QmlXXX to QDeclarativeXXX, QmlGraphicsXXX ↵Leonardo Sobral Cunha2010-02-241-14/+14
| | | | to QDeclarativeXXX.
* Change class prefix to from QmlXXX to QDeclarativeXXX, QmlGraphicsXXX to ↵Warwick Allison2010-02-248-0/+730
QDeclarativeXXX.