summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative
Commit message (Collapse)AuthorAgeFilesLines
* Change to release license header.Jason McDonald2011-02-1689-1157/+1157
| | | | Reviewed-by: Trust Me
* Fix declarative autotest compilation on SymbianJoona Petrell2011-02-142-1/+13
| | | | | | Task-number: Reviewed-by: Martin Jones (cherry picked from commit e46c44f9538dbe5b44ce61d3a42403cfa471ae8b)
* Make addImportPath() work for windows paths starting with lower caseBea Lam2011-02-141-1/+11
| | | | | | | | | | | | | Was causing assert failure on windows if the 'c:' was lower case, since it was being added to the import path database with a lower case and thus later lookups with an upper case 'c:' would fail. This change fixes the check for whether the path refers to a local path or not. Task-number: QTBUG-16885 Change-Id: I0a2a2f705443ed453fb2b13f8599e035c2bd2877 Reviewed-by: Martin Jones (cherry picked from commit 33512bc223be373975426ffcc6f8fa783a7582c9)
* Update modules-related tests and docsBea Lam2011-02-145-2/+68
| | | | | | | | Added tests for remote imports and fixed/improved examples and text in the docs. Change-Id: I8f411a0287c4d50ec3cebe5567d803689cd5b1c7 (cherry picked from commit d7e42d7c5b0eb6513526d0c21025939a467e8d68)
* Add test for importing plugins that contain QML filesJason McDonald2011-02-147-1/+91
| | | | | | | | (cherry picked from commit a78f6b1718b8285cb65ae989a070bf8703746b5d) Conflicts: tests/auto/declarative/qdeclarativemoduleplugin/qdeclarativemoduleplugin.pro
* PathView regression: dragging the path didn't update currentIndexMartin Jones2011-02-102-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 (cherry picked from commit eb1db74fb59ecb40d541644ce31ce7ec7b2620d2)
* Support seperate versions of installed modulesmae2011-02-0910-1/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | QML supports versioned types in modules. There's a version major and a version minor. This makes it possible to have a module com.organisation.fancycomponents with version 1.0, and later you could ship a new module com.organisation.fancycomponents which contains a more recent version 1.1 or 2.0 AND also the old versions to keep old code running. This is good. The problem is that this is difficult with certain QA procedures. It's hard to verify that a new module is indeed 100% compatible with the previous versions. The change extends the import mechanism by adding optional versioning to the component patch. With the patch, you can add a new module com.organisation.fancycomponents.2.0 which will be loaded when the QML file specifies "import com.organisation.fancycomponents 2.0". The patch works as follows: if you try to load com.organisation.fancycomponents in version 2.0, the engine first looks for com/organisation/fancycomponents.2.0, then for com/organisation/fancycomponents.2 then for com.organisation/fancycomponents. Reviewed-by: Aaron Kennedy Task-number: QTBUG-16455 (cherry picked from commit dd49b322b327fe87d8420abcce0e6cee877a88d7)
* positionViewAtIndex can fail when positioned near end of list.Martin Jones2011-01-211-0/+13
| | | | | | | | | | We positioned the view beyond the bounds, which in some cases resulted in only one item being created. Combined with a bug in the bounds fixup very many items were created. Task-number: QT-4441 Reviewed-by: Michael Brasser (cherry picked from commit c3dd455b03a6c03011e2446f69fc262230e91639)
* BorderImage fails for .sci source containing a URLMartin Jones2011-01-212-0/+8
| | | | | | Task-number: QTBUG-16769 Reviewed-by: Bea Lam (cherry picked from commit 7ddec9f3179bfd854ae53e23ab292de1f9a26377)
* Revert "Fix loaded() signal to be emitted only once"Bea Lam2011-01-211-54/+40
| | | | | | | | | | This reverts commit 82ff3f484c7ec49e60b7fddf23794937974a6768. QTBUG-16796 reports that this commit is causing regressions relating to initial sizing of items. Task-number: QTBUG-16796 (cherry picked from commit 8c3086aa36b51a9731fce8eb8146b33ab8196aed)
* Update copyright year to 2011.Jason McDonald2011-01-1184-84/+84
| | | | | Reviewed-by: Trust Me (cherry picked from commit ac5c099cc3c5b8c7eec7a49fdeb8a21037230350)
* Update pathview testAlan Alpert2011-01-1015-318/+318
| | | | | | | This updates the tests to match the correct behaviour as of 1ba3e41f09ea719249286fede5d3fe96621ccb61 Task-number: QTBUG-16357
* Fix loaded() signal to be emitted only onceBea Lam2011-01-101-40/+54
| | | | | Task-number: QTBUG-16319 Reviewed-by: Martin Jones
* 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
* Fix outdated testsAlan Alpert2011-01-0510-130/+1779
| | | | | | | selftest_noimages and qdeclarativespringanimation were correct, updating test scripts to match. Task-number: QTBUG-14792
* Update visual testsAlan Alpert2011-01-0420-923/+923
| | | | | | | Minor changes in flickable and rectangle radius behaviours have led to some altered pixels here and there. Task-number: QTBUG-14792
* Models which load incrementally via fetchMore() don't work.Martin Jones2010-12-234-1/+187
| | | | | | | | Call canFetchMore()/fetchMore() on setModel(), setRootIndex() and when the last item is created. Task-number: QTBUG-16039 Reviewed-by: Bea Lam
* Try fixing build error on WindowsBea Lam2010-12-231-1/+1
|
* Ensure PathView doesn't jump when starting to drag.Martin Jones2010-12-2316-519/+521
| | | | | Task-number: QTBUG-16133 Reviewed-by: Bea Lam
* Nested flickables would react alternately to flicks.Martin Jones2010-12-238-0/+2209
| | | | | | | | The grab was not always kept by filtering Flickables, but would remain set next flick, resulting in toggling of flicking. Task-number: QTBUG-16177 Reviewed-by: Michael Brasser
* Improve QDeclarativeComponent test coverage.Michael Brasser2010-12-221-0/+15
|
* Add additional QDeclarativeProperty autotests.Michael Brasser2010-12-221-0/+62
|
* Removing all visible items in ListView resulted in blank view.Martin Jones2010-12-221-1/+2
| | | | | | | | | When delayRemove is true and all visible items are tagged to be removed the visibleIndex became invalid and refill() began filling from 0. Task-number: QTBUG-16183 Reviewed-by: Michael Brasser
* XmlListModel requests should set 'Accept' header to 'application/xml'Bea Lam2010-12-221-0/+69
| | | | | Task-number: QTBUG-15836 Reviewed-by: Michael Brasser
* More testing for KeyNavigation attached properties.Martin Jones2010-12-212-0/+45
|
* Add tests for ListView.indexAt() and GridView.IndexAt()Martin Jones2010-12-212-0/+70
|
* Setting TextInput.cursorPosition outside bounds crashed.Martin Jones2010-12-202-0/+26
| | | | | | | Check bounds in TextInput and TextEdit. Task-number: QTBUG-16188 Reviewed-by: Bea Lam
* Update test bitmaps for QDeclarativeImage::svg() autotest on WindowsJoona Petrell2010-12-202-0/+0
| | | | | Task-number: Reviewed-by: Martin Jones
* Don't truncate image:// url strings prematurelyBea Lam2010-12-201-4/+42
| | | | | | | | Url fragments and queries were being removed from the image ids passed to QDeclarativeImageProvider. Task-number: QTBUG-16195 Reviewed-by: Martin Jones
* Fix QDeclarativeState::reset() autotestJoona Petrell2010-12-173-12/+10
| | | | | | | Current state reset mechanism does not really work for Text elements as the keeping implicit correct would require relayouting of text twice (See bug QTBUG-15118). Changed QDeclarativeState reset autotest to use Image element instead of Text element until the issue has been fixed. Task-number: Reviewed-by: Yann Bodson
* Update test bitmaps for QDeclarativeImage::svg() autotest on LinuxJoona Petrell2010-12-172-0/+0
| | | | | Task-number: Reviewed-by: Martin Jones
* Revert a fix made for bug QTBUG-15341Joona Petrell2010-12-141-40/+0
| | | | Reverted a commit 2eee49127b80b5b56c605f76ccea004b03d89577 "Remove active selection when TextEdit loses focus". Contrary to TextInput, by default TextEdit keeps the selection visible when the editor loses active focus. If this is not wanted, a property called persistentSelection can be set false to make selection dependant on the focus.
* Remove active selection when TextEdit loses focusJoona Petrell2010-12-141-0/+40
| | | | | Task-number: QTBUG-15341 Reviewed-by: Yann Bodson
* Ensure ListView contentHeight is set to a valid size.Martin Jones2010-12-132-0/+57
| | | | | | | | | If the view height is 0 no items will be created so the contentHeight can not be estimated. The currentItem is usually created, so it is possible to use that to estimate. Task-number: QTBUG-16037 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 qtsoftware:qt/qt.git#4.7 into qtsoftware:qt/qt-qml.git#4.7Joona Petrell2010-12-092-0/+135
|\ | | | | | | | | Conflicts: src/s60installs/eabi/QtGuiu.def
| * Don't emit activeFocusChanged() unless the active focus actually changedTor Arne Vestbø2010-12-072-0/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We would previously call subFocusItemChanged(0) on the item as part of clearing the subfocus, even if the item in question would recieve a new subfocus item as part of setting the new subfocus. This resulted in the declarative item emitting activeFocusChanged(false) and then activeFocusChanged(true), which was affecting any animation or state bound to the activeFocus property of the item. We now stop clearing the subfocus when encountering an item that we know will get subfocus during the set-subfocus pass. We then set subfocus all the way to the root item, since the subfocus item itself might change. The effect of this is that the declarative item will only get one call to subFocusItemChanged(), passing the new subfocus item, instead of two. This means the declarative item can keep track of wherther ot not it had a subfocus item previously, and only emit activeFocusChanged() when the active focus goes from true to false or false to true. Task-number: QTBUG-15615 Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
* | highlightFollowsCurrentItem: false was not always honoredMartin Jones2010-12-094-9/+23
| | | | | | | | | | | | | | | | In some cases ListView and GridView would position the highlight despite highlightFollowsCurrentItem: false being specified. Task-number: QTBUG-15972 Reviewed-by: Michael Brasser
* | ListView: Fix calculation of currentItem position when out of view.Martin Jones2010-12-082-1/+94
|/ | | | | | | | The calculation of position of currentItem when it is out of the visible area was bogus. Task-number: QTBUG-15525 Reviewed-by: Bea Lam
* Update visual tests for the recent qmlviewer changeAlan Alpert2010-12-0331-1113/+1113
| | | | | | | Changing the minimum size of the viewer changes the size of some of the visual test outputs which were really small. Task-number: QTBUG-14792
* Do not use openGL on Mac OS X for QML visual testsAlan Alpert2010-12-031-0/+6
| | | | | | It appears to lead to sporadic crashes in the CI system. Task-number: QTBUG-14792
* Update QML visual testsAlan Alpert2010-12-0359-1892/+2838
| | | | | | | Reintroducing text tests to X11, and updating a few tests where the behaviour of the items has subtly changed (and it was deemed acceptable) Task-number: QTBUG-14792
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into ↵Qt Continuous Integration System2010-12-011-35/+35
|\ | | | | | | | | | | | | 4.7-integration * '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1: fix line endings
| * fix line endingsRobert Loehning2010-12-011-35/+35
| |
* | ListView header is not visible initially.Martin Jones2010-12-012-18/+82
|/ | | | | | | | | If the header size was not set explicitly, but determined implicitly from Text height, the view was not positioned so that the header was visible when first shown. Task-number: QTBUG-15599 Reviewed-by: Bea Lam
* Ensure header is considered when positioning content with snapping.Martin Jones2010-11-303-1/+63
| | | | | | | | | When snapping is enabled the header was ignored and content would be aligned with the first item rather than the header, when at the top of the view. Task-number: QTBUG-15710 Reviewed-by: Bea Lam
* Correct ownership semantics for QObject derived typesAaron Kennedy2010-11-301-0/+37
| | | | Task-number: QTBUG-15697
* Correctly handle CppOwnership even when a QDeclarativeData doesn't existAaron Kennedy2010-11-301-0/+46
| | | | Task-number: QTBUG-15695
* Fix Browser.qml warningsJoona Petrell2010-11-301-0/+12
| | | | | Task-number: QTBUG-15720 Reviewed-by: Martin Jones