aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2
Commit message (Collapse)AuthorAgeFilesLines
* Refactor Canvas rendering paths.Justin McPherson2012-02-104-45/+126
| | | | | | | Refactor Canvas rendering paths to enable different drawing contexts. Change-Id: If0e00a14baa673fca6b999a787b4e89885bb1e51 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Added new convenience readonly visibleChildren property to ItemMathias Malmqvist2012-02-102-0/+204
| | | | | | Change-Id: I5ec541226fabd72c05ce8ccb8bb7e56f6ec7717a Task-number: 22724 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Add linkColor property to Text.Andrew den Exter2012-02-091-1/+86
| | | | | | | | | | | | | | | Allows the color of links in text to be changed from the default blue. This currently only works with StyledText and the distance field rendererer. It could be made to work with RichText overwriting the specified foreground color in all instances or by not setting a default color in the html parser. The former would prevent the color being set with CSS or some future means for altering text formats. The latter would break rendering with QPainter. Task-number: QTBUG-23048 Change-Id: I98df215cabe8a089f648fd4a6206622b4318fb8f Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Don't crash if focus issues arise.Alan Alpert2012-02-091-0/+2
| | | | | | | | The test has some strict focus requirements, but if they are not met then the test should FAIL with a bit of explanation instead of crash. Change-Id: I796e8a8092833f3413b3dc98a22466575dfe241d Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Don't hide virtual method.Michael Brasser2012-02-082-10/+10
| | | | | | Task-number: QTBUG-20994 Change-Id: Iaeeb23ed758ef52e0a3a61c4310aafec383e8a28 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Allow Item components to be assigned to Item.layer.effect.Kim Motoyoshi Kalland2012-02-074-1/+76
| | | | | | | | | Some complex effects are easier to implement as Items using ShaderEffects internally rather than with a top-level ShaderEffect. Auto-tests added. Change-Id: I4b99811b87e7ca5054bf119b99207b7f5a7c666e Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Resolve StyledText img tags relative to baseUrl.Andrew den Exter2012-02-072-1/+84
| | | | | Change-Id: I954195d52330c65e851b7c0fcdb6c8dabf29335d Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Fixed some Item.layer bugs and added auto-tests.Kim Motoyoshi Kalland2012-02-077-4/+259
| | | | | Change-Id: I3f66f911d1c499c37a66904f8ddab6951ba85e60 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Separate out some of the common test codeBea Lam2012-02-0725-1205/+858
| | | | | | | | | Moves findItem, findItems() etc. into shared/visualtestutil.h and moves duplicate list model test classes and other common view-specific code into shared/viewtestutil.h. Change-Id: Ia79bc4df1ab7fb618597755c0288a2e8f5054faf Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add additional animation autotests.Michael Brasser2012-02-074-1/+279
| | | | | Change-Id: I11894325e73b8bb5b6ece4c626b15bd1d099f229 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Add contentWidth and contentHeight properties to Text elements.Andrew den Exter2012-02-073-111/+213
| | | | | | | | | | | For Text and TextEdit this is a rename of paintedWidth and paintedHeight both of which remain as synonyms of the content properties for compatability. For TextInput this is a new property. Task-number: QTBUG-23691 Task-number: QTBUG-15160 Change-Id: Idbdc72fad34922be21b649ca45fc39b5e533ed1a Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Add and use new animation backend.Michael Brasser2012-02-079-43/+165
| | | | | | | | | The new backend improves performance, and allows us to create multiple running animation jobs from a single Transition. It is based off of the existing Qt animation framework. Change-Id: Id1d0162f6e5c65bf31267f3f9f2042c354375d57 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Update test files to API changesAlan Alpert2012-02-072-3/+3
| | | | | | | | API changes are being managed, but the test files shouldn't be triggering the warning. Change-Id: Ifd6c0c08be9979d72f98eb6a1df07daf9302772e Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Ensure Flickable moving and flicking properties are correct.Martin Jones2012-02-071-1/+43
| | | | | | | | | Flicking, then touching to stop the flick should set flicking property to false. Moving or flicking vertically should not set flickingHorizontally, and vise-versa. Change-Id: Iee42a92ffff2707f0691ffa285dec514b47c9986 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Section header is not made visible when changing currentIndex.Martin Jones2012-02-071-0/+7
| | | | | | | | | Make section header visible when setting currentIndex to an item on a section boundary. Could also affect initial position if view size started at 0. Change-Id: Ie65f91826311d34a290d369d8956f1c88f7efb70 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Fix acceptance of unhandled mouse events.Simon Hausmann2012-02-061-0/+39
| | | | | | | | | | | | Mouse events not handled by the canvas need to be ignored, in order for features like touch synthetization to work. In case of the initially delivered mouse press event, the canvas did not ignore the event if it was not handled. This patch corrects that and adds an auto-test to verify the new behaviour. Change-Id: I8499701f5a161ce1e90a70303aa7ca4ccf2f0b6f Reviewed-by: Andras Becsi <andras.becsi@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Fix vertical offset of TextInput.positionToRectangle.Andrew den Exter2012-02-061-1/+53
| | | | | | | | | Offset the y value of the rectangle by the vertical scroll and line offset. Task-number: QTBUG-23934 Change-Id: I43815b480f43a089a9a03b0aec32dfc0598b6154 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix TextEdit vertical alignment.Andrew den Exter2012-02-061-0/+25
| | | | | | | | | | Don't ignore the position of a QTextDocument when contructing a text node, and translate the rectangle returned by positionToRectangle by the y offset. Task-number: QTBUG-23935 Change-Id: I55a2b69a32a8b623be7e36de54ad083c2f8591e5 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add support for resizing fonts to fit Text dimensions.Andrew den Exter2012-02-062-6/+582
| | | | | | | | | | | This adds a mode where if the content of a Text item doesn't fit within its bounds the font size is reduced during layout until it does or a minimum font size is reached. Task-number: QTBUG-22832 Change-Id: I6198ef03899e2f21b32e313548966ef4b0e3bff1 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Teach build system tst_qdeclarativepixmapcache needs QtConcurrentAlan Alpert2012-02-061-0/+3
| | | | | | | So if QtConcurrent is disabled, this test should be too. Change-Id: Ib4c6a952f73fc21bb201cf6017cd3e73732fbe7b Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
* Add "QT += concurrent" to a test that needs itAlex Wilson2012-02-061-1/+1
| | | | | | | | QtConcurrent became its own module in qtbase as of http://codereview.qt-project.org/15206 Change-Id: Ie9b638d83012aa83f854b92fec80d48babcf6ef0 Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
* Skip tst_qquickitem::simpleFocus on Mac OS X 10.7Yann Bodson2012-02-061-0/+5
| | | | | | | Task-number: QTBUG-24094 Change-Id: I521707891d2695d7dde8eea4ef8a6a2e3f5ea935 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Remove QtQuick1 elements from qtdeclarativeMatthew Vogt2012-02-034-136/+1
| | | | | | | | QtQuick1 is now contained in a separate repository. Task-number: QTBUG-23737 Change-Id: I09eae67af5693a22b896b916f816f73ccc3a89b1 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Adapt to QGuiApplication::focusObject() for notifying input methodPekka Vuorela2012-02-022-59/+46
| | | | | | | | | Emitting focusObjectChanged() signal now instead of explicitly setting inputItem to QInputPanel. Also adapted from deprecated QInputPanel::inputItem() to QGuiApplication::focusObject(). Change-Id: I97460625cc8bb2820ec7716a06330aecd1b585ea Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Support inline images with <img> tag in StyledTextYann Bodson2012-02-027-2/+161
| | | | | | Task-number: QTBUG-21793 Change-Id: Ie7b9f293c6c9a949c1899152c38b61251b0069d3 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Incorrect initial pos after resizing view with margins.Martin Jones2012-02-023-0/+96
| | | | | | | | | | The currentItem tracking didn't position the view to show the margins. This affects resizing the view and also changing currentIndex. Task-number: QTBUG-24028 Change-Id: I47d4c771c0d712c93abadfb6b2deb5194241fb6b Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Fix unhandled touch events not being ignored.Simon Hausmann2012-02-021-11/+89
| | | | | | | | | Unhandled touch events need to be ignored in order for things like mouse event synthetization in QtGui to work. Change-Id: I6fe9dad205c8bb8547d2424c2e2a3b3518598006 Reviewed-by: Andras Becsi <andras.becsi@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Must update columns when GridView geometry changesBea Lam2012-02-022-2/+63
| | | | | | | | | | Regression from changes in 80d85e0017cb5cc4b0a0df6c19d4126bf5062731 Also remove shared duplicate code in visibleItemsChanged() in ListView and GridView. Change-Id: Ic3ab3ba070ddf9901a232ed5b3250c725797cf69 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Multiple fast flicks with large content moves fasterMartin Jones2012-02-022-3/+19
| | | | | | | | | Repeatedly flicking quickly in a large view moves faster than the velocity of the touch. Task-number: QTBUG-18600 Change-Id: Ie6747e0d945022e0c0c5f6c5f95bc35403a14d56 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* More StyledText autotestsYann Bodson2012-02-021-0/+2
| | | | | Change-Id: I4fab5f0b421ddccce2c4bce58861ec236f3434f9 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Compress consective StyledText whitespaces into a single space.Andrew den Exter2012-02-021-0/+12
| | | | | | | | | This improves the correctness of the parser and prevents line feed characters appearing as unrendereable characters. Change-Id: I54e8be011ba4d9ad65ee2142e6b1f423a7579352 Reviewed-by: Yann Bodson <yann.bodson@nokia.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add a persistentSelection property to TextInput.Andrew den Exter2012-02-024-16/+101
| | | | | | | | Improves feature parity with TextEdit. Task-number: QTBUG-16355 Change-Id: I3919c71454a4f4574a1ee35ad38969459beb8363 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add autotests for StyledText list tags (<ol> and <ul>)Yann Bodson2012-02-021-0/+19
| | | | | | Task-number: QTBUG-23979 Change-Id: Ic050e443ceed3cc41bd156de1455b2a9bc25fb35 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Don't leave windows hanging outside test functionsGunnar Sletta2012-02-011-18/+14
| | | | | Change-Id: I2df2167386b0827ae25a14f958ee50d0a15eba0b Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* Fix outdated license headers.Jason McDonald2012-02-012-2/+2
| | | | | Change-Id: I8448e0d3dbce0c18f38a1ed9b6e2d75ba83f7088 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Guard against event recursion in QQuickDrag.Andrew den Exter2012-02-011-0/+207
| | | | | | | | Do not emit drag events recursively as this will send events out of order and corrupt the grab stack. Change-Id: Ieede7123c96304e23c809ac895318ed76c8c95c1 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fixes for removing before visibleBea Lam2012-02-012-19/+43
| | | | | | | | | | | | | Account for removing multiple items over visible and non-visible items and calculate these using the index of the first visible item rather than the visibleIndex (which can be above the visible position). Also, don't take the changeBeforeVisible into account if the first visible is already being adjusted, otherwise it moves back one more row than it should. Change-Id: Iea7247102e06697d10eb41301ca689c0cdc35ece Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Update item focus when the enabled property is changed.Andrew den Exter2012-02-011-0/+139
| | | | | | | | | | Remove active focus from an item when it is disabled, and give active focus to an enabled item if it has focus within a scope with active focus. Task-number: QTBUG-22404 Change-Id: Iff2b774a9ff784e6107a4ed6524c93e749ae0182 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Stabilize testsGunnar Sletta2012-02-011-1/+3
| | | | | Change-Id: Iafaf645787dfecfbe044dd87dbfdbb884a75040b Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Skip unstable testAlan Alpert2012-02-011-0/+1
| | | | | | | Task-number: QTBUG-23976 Change-Id: I81f820e064808d170094e6dcf9cbe35edf7bda35 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Skip failing test row for nowAlan Alpert2012-02-011-1/+1
| | | | | | | Task-number: QTBUG-23980 Change-Id: If8656838296cd392de367f4557ccd676e161987c Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-3054-54/+54
| | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: If39bd256b0fa85eba17ea30f8ab87ea27d758908 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Enhance editors notifying input panel for input method changesPekka Vuorela2012-01-272-4/+125
| | | | | | | | | | | Introduced protected QQuickItem::updateInputMethod() and removed similar, but badly named updateMicroFocus(). Added some missing notifications from the editors and avoided unnecessary updates when not having focus. Change-Id: Id5c00e87dc26fd35c3f919006817511d4ed6418d Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Update PathAnimation API and document.Michael Brasser2012-01-271-2/+2
| | | | | | | | Update the API according to the last API review. Document it and add a basic example as well. Change-Id: I2d06a0772a9fb2101844446e68799620c275db97 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* PathInterpolator should report angle in clockwise direction.Michael Brasser2012-01-271-4/+4
| | | | | | | | This makes it much more intuitive when binding item rotation to angle. Change-Id: I5654866d9cd1c0ff5899c5571532fc7fedddd440 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Prevent PathAnimation from hanging when jumping backwards to beginning.Michael Brasser2012-01-272-27/+64
| | | | | | | Task-number: QTBUG-23076 Change-Id: I2aecdfd28f0c3d45b3b805640edaecbd5be2e6fd Reviewed-by: Yunqiao Yin <charles.yin@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* reimplement QWindow::focusObject() on QQuickCanvasPekka Vuorela2012-01-252-0/+37
| | | | | | Change-Id: I935a303d0baa9500ab47f749eb3b3f9a11a70946 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Add a locale property to IntValidator and DoubleValidator.Andrew den Exter2012-01-251-0/+95
| | | | | | | | | Allow the locale used for interpreting numbers to be changed from the application default. Task-number: QTBUG-23713 Change-Id: I28463485c86236fb2586eeb703ec4b051405c5a8 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Adapted QQuickScreenAttached to orientation API changes in QScreen.Samuel Rødal2012-01-242-2/+2
| | | | | Change-Id: Ic2cb008b989780e297f03ddd5bdef466bb230c74 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Stabalize SpriteImage test.Andrew den Exter2012-01-241-1/+1
| | | | | | | | Use a QTRY_COMPARE to allow a little more time for the required frames to be rendered as needed. Change-Id: If60aeaa3af42476c19582c5efc3f96f7db1b148d Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>