summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative
Commit message (Collapse)AuthorAgeFilesLines
* Correct spelling (UNKOWN -> UNKNOWN) to fix recent test regressionBradley T. Hughes2010-08-101-1/+1
| | | | | | | Commit eea84818e98af917d3cf2bf04ea17a416ef9d55e corrected some spelling mistakes, one of which this test was relying on. Reviewed-by: trustme
* Top-level QML item should not have special focus handling.Michael Brasser2010-08-061-1/+1
| | | | | | | | It's the scene itself that acts as a focus scope, not the top-level item. Task-number: QTBUG-12682 Reviewed-by: Aaron Kennedy
* Add missing test file.Michael Brasser2010-08-051-0/+33
|
* Make sure onFocusChanged is correctly emitted for items in a FocusScope.Michael Brasser2010-08-051-0/+56
| | | | | Task-number: QTBUG-12649 Reviewed-by: Martin Jones
* Make SpringAnimation usable inside a transitionmae2010-08-042-0/+43
| | | | | | | | | | | | SpringFollow was turned into SpringAnimation so it could be used inside a Behavior. This patch completes the work and makes it usable inside a transition. This is the documented behavior of SpringAnimation, the patch is essential to make SpringAnimation work consistently. Reviewed-by: Michael Brasser Task-number: QTBUG-12141
* Make it possible to manually set the orientation of QML Viewer on SymbianJoona Petrell2010-08-031-3/+33
| | | | | | | | | | | | | | | | | | | | Task-number: QTBUG-12142 Reviewed-by: Warwick Allison This patch brings ability to switch QML Viewer's orientation between auto-orientation (=follow sensor), portrait and landscape orientations (lock orientation) on Symbian. It provides same orientation options as Qt Creator 2.1's Qt QML Standalone Application creation wizard. Also, menu item rotateOrientation now works on Symbian, but it's hidden when orientation mode is set to auto-orientation. Property runtime.orientation has been switched back to supporting four-way orientation on Symbian, previously it only updated values between portrait and landscape. If your application only supports landscape or portrait modes, just don't react to the inverted orientations. Added orientation example screenorientation under examples/declarative. The patch includes a fix for calculator example, which rotated to wrong direction when switching from portrait to landscape. Also, improved qdeclarativeviewer unit tests. Changes have been tested to work on Windows, Linux and Symbian^3.
* Limit the pixmap cache in space as well as in time.Aaron Kennedy2010-08-032-0/+40
| | | | QTBUG-12590
* Correctly apply PropertyChanges when entering an extended stateMichael Brasser2010-08-022-0/+42
| | | | | | | | directly from the base state. Make sure qmlExecuteDeferred is called on the state being extended. Task-number: QTBUG-12559
* Add moving and flicking properties to PathViewMartin Jones2010-07-298-470/+815
| | | | | | | | | | PathView handles its own mouse interaction, but lacked properties similar to those in Flickable to determine when it is stationary. This made it impossible to start an animation when the view stops moving, for example. Task-number: QTBUG-12497 Reviewed-by: Warwick Allison
* Add test for getting a backtrace in QMLOlivier Goffart2010-07-284-0/+212
|
* Fix test.Michael Brasser2010-07-221-0/+1
|
* Fix TextInput echoMode autotest on LinuxJoona Petrell2010-07-221-0/+4
| | | | | Task-number: Reviewed-by: Michael Brasser
* Fix TextEdit text attribute and text stored in the internal QTextDocument ↵Joona Petrell2010-07-221-0/+34
| | | | | | | having different contents Task-number: QTBUG-12339 Reviewed-by: Martin Jones
* Remove QDeclarativeItem::childrenChanged() signal overloadMartin Jones2010-07-221-0/+5
| | | | | | | Broke signal handlers in QML Task-number: QTBUG-12335 Reviewed-by: Aaron Kennedy
* Allow MouseArea dragging to filter mouse events from descendantsMartin Jones2010-07-221-0/+11
| | | | | | | | This allows dragging a MouseArea that contains a clickable MouseArea, for example. Task-number: QTBUG-12323 Reviewed-by: Michael Brasser
* Rename remaining 'wantsFocus'.Yann Bodson2010-07-212-9/+9
|
* Bounding rect of text was not always calculated correctly.Martin Jones2010-07-212-0/+37
| | | | | | | | The boundingRect depended upon the image cache which may not become valid until after boundingRect is called. Task-number: QTBUG-12291 Reviewed-by: Michael Brasser
* QML focus API updates.Michael Brasser2010-07-2113-159/+154
| | | | | | | | | The wantsFocus property has been renamed to activeFocus, to better reflect its value. Reading and writing the focus property is also now consistent -- this property represents focus within a scope. Other small changes were made to keep things consistent with the new naming. Reviewed-by: Aaron Kennedy
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Warwick Allison2010-07-217-8/+124
|\
| * Only ignore the same target value for a Behavior when it is running.Michael Brasser2010-07-212-0/+44
| | | | | | | | | | | | | | | | | | | | Otherwise a Behavior may mistakenly not be triggered. This situation can arise when the property in question has been manipulated via the property system, followed by a direct function call (which correctly bypasses the Behavior), followed by a another change via the property system. Task-number: QTBUG-12295
| * font.letterSpacing used percentage rather than absolute values.Martin Jones2010-07-213-8/+8
| | | | | | | | | | | | | | ... and percentage is useless. Task-number: QTBUG-12282 Reviewed-by: Warwick Allison
| * Rewinding AnchorChanges should not make target item's implicit width and ↵Joona Petrell2010-07-212-0/+72
| | | | | | | | | | | | | | height explicit Task-number: QTBUG-12273 Reviewed-by: Michael Brasser
* | Ensure redirects (and indeed all reply process) is done in the right thread.Warwick Allison2010-07-211-0/+2
|/ | | | | | | i.e. the thread with the QNAM the original reply was created in. Task-number: QTBUG-12302 Reviewed-by: Aaron Kennedy
* Ensure the boundingRect() of Text is correctly calculated.Michael Brasser2010-07-201-0/+1
| | | | | | | We need to create our cached image in boundingRect() if it doesn't already exist, to prevents painting errors. Reviewed-by: Warwick Allison
* Ensure released VisualItemModel items are removed from the scene.Martin Jones2010-07-202-4/+34
| | | | | | Also parent them back to the VIM to ensure correct destruction. Task-number: QTBUG-12261
* Fix ListView sections with QList<QObject*>Martin Jones2010-07-192-0/+6
| | | | | | | QDeclarativeVisualDataModel::stringValue() did not handle QList<QObject*> model types. Task-number: QTBUG-12005
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-07-191-12/+12
|\
| * Allow test to pass on smaller screens (eg. 480 high).Warwick Allison2010-07-161-12/+12
| |
* | 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
* Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7Martin Jones2010-07-141-4/+6
|\
| * Fix test for get() to check for undefined return valuesBea Lam2010-07-141-4/+6
| | | | | | | | Task-number: QTBUG-10658
* | Position GridView and ListView footer correctly when model cleared.Martin Jones2010-07-144-0/+135
|/ | | | Task-number: QTBUG-12167
* Autotest for QTBUG-5491 (Animation in a Behavior doesn't update running)Michael Brasser2010-07-132-0/+38
|
* wantsFocus should be based on FocusScope chain, not parent chain.Michael Brasser2010-07-136-13/+53
| | | | | | | | Ancestors of the item with focus should only report wantsFocus as true when they are a FocusScope or a top-level item. Reviewed-by: Aaron Kennedy Reviewed-by: Yann Bodson
* Calling setMinimumSize(0, 0) on a top-level window sometimes triggers a bugRobert Griebl2010-07-121-14/+12
| | | | | | | | | | in the Compiz window manager which leads to the QML viewer mainwindow not being composited anymore (at least until the next resize). Since we need to somehow switch between fixed size and freely resizable views, we have to work around that bug using the layout constraint hints. Task-number: QTBUG-11771 Reviewed-by: kkoehne
* Remove use of SpringFollow and SmoothedFollow in qmlvisual testBea Lam2010-07-123-31/+42
| | | | (onvert to use SpringAnimation and SmoothedAnimation instead)
* Fix Mac CIJoona Petrell2010-07-122-0/+24
|
* Add copy(), cut() and paste() support to TextInputJoona Petrell2010-07-122-1/+71
| | | | | Task-number: QTBUG-12086 Reviewed-by: Michael Brasser
* Fix .pro file after class/test rename.Michael Brasser2010-07-111-1/+1
|
* Make test pass and fix docs following removal of SpringFollowBea Lam2010-07-091-2/+2
|
* Remove autotests of depracted element SmoothedFollowJoona Petrell2010-07-098-251/+0
|
* Clean up at the end of each test.Michael Brasser2010-07-081-0/+12
|
* Improve test reliability.Michael Brasser2010-07-081-2/+6
|
* Follow -> Behaviormae2010-07-086-34/+29
| | | | Replace the usages of Follows with Behaviors, update docs.
* Don't show warning for attempts to load pixmaps asynchronouslyBea Lam2010-07-081-3/+1
| | | | | (should be handled by image providers, elements shouldn't have to know about the capabilities)
* Remove Image::pixmap property. QML applications should useBea Lam2010-07-081-31/+0
| | | | | | QDeclarativeImageProvider to provide pixmaps instead. Task-number: QTBUG-11980
* Extend QDeclarativeImageProvider to support QPixmap loading andBea Lam2010-07-084-37/+167
| | | | | | | | | | synchronous loading of QImages. (QPixmaps can only be created in the main thread so they will always be loaded synchronously). This changes request() to requestImage() and adds requestPixmap() for pixmap support. Task-number: QTBUG-11989
* Allow the debugger to modify method bodiesAaron Kennedy2010-07-081-4/+52
| | | | QTBUG-11933
* Make Text, TextInput, and TextEdit all have the same size for the same text.Warwick Allison2010-07-072-4/+4
| | | | | | | | | | | | This may mean that the cursor is to the right of the width, so components should cater for that with a margin if they are boxed / clipped. TextInput used to try to account for right bearing (and left bearing incorrectly since it added it on the right). This is removed. Potentially this means that for some fonts the text repaints incorrectly on the left or right, but if that is the case Text and TextEdit already had such a problem (undetected), and all will need fixing. Task-number: QTBUG-11983
* More generated images in anticipation of QT-3574Warwick Allison2010-07-072-28/+45
|