aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Reduce assumptions in examplesAlan Alpert2012-03-286-55/+45
| | | | | | | | | | | -dynamic scene, don't set duration on running animation (doesn't work) -dynamic scene, just use set colors instead of system palette (in case platform doesn't support it right, like N900) -dynamic scene, calculator and shadereffects, don't rely on root item being automatically in scope (possibly confusing) Change-Id: I1eec018d5387424dc6b07bf51c1b2184b3048553 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Use pixmapCache in sprite assemblyAlan Alpert2012-03-281-1/+2
| | | | | Change-Id: Ibd4f5ea08a548e3c255db3e771b667f5850978e2 Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
* Warn on incompatible v4 binding object typeMatthew Vogt2012-03-284-3/+71
| | | | | | | | | | | | For QObject-derived properties, verify that the type of the source object is convertible to the type of the target object, and report an error for incompatible assignment attempts. Task-number: QTBUG-24986 Change-Id: Ieece29a017222e48351cd433c1b2f9e2d93a5fd7 Reviewed-by: Chris Adams <christopher.adams@nokia.com> Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Fix imports in GridView testMartin Jones2012-03-281-2/+11
| | | | | | | | Were still importing QtQuick 1.0 and not checking whether the components were created. Change-Id: Ie42e5d1b3a134af39c62c5eb54a1d620c59cefee Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Section comparison should be case insensitive.Martin Jones2012-03-282-9/+12
| | | | | | | | Allows use of mixed case model data without having to add a special role just for sectioning. Change-Id: I0a747e51542b5bf0f9db8fc2732882928a6cc676 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Fix qquicktext tests to use QQmlComponent not QDeclarativeComponentJulian de Bhal2012-03-283-4/+4
| | | | | Change-Id: I340e01b9fa6d77343f25180abaa021454c7a0767 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* TextInput to use password mask delay if platform style defines onePekka Vuorela2012-03-273-30/+14
| | | | | | | Change-Id: I05b98db2d7855f29b11749524a74e04a71178347 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Debugger: Allow enabling of qml debugger without startup warningKai Koehne2012-03-273-7/+10
| | | | | | | | | | | Add QT_DECLARATIVE_DEBUG_NO_WARNING define to support enabling the qml debugger without printing the usual startup warning. This should be used with care, but e.g. for qmlscene the warning probably confuses more than it helps. Change-Id: I33704857baebfc8bca60abbff09138e259390b49 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Buffer changes received during layout()Bea Lam2012-03-275-5/+98
| | | | | | | | Otherwise, changes received by a view during layout() may override the changes that are currently being processed. Change-Id: Iabc4db682f85ceb7d04c3f7442fb6c98ebdb94f1 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Release FBOs held by the shader effect source sooner.Kim Motoyoshi Kalland2012-03-271-2/+28
| | | | | Change-Id: I2bdb4a9e4da50afff6752c2c0fd7e60041ede14f Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Add QQmlBoundSignalNoParamsqt-v5.0.0-alpha1Michael Brasser2012-03-275-13/+125
| | | | | | | | This class is used for signal handlers with no parameters, and is more lightweight than QQmlBoundSignal. Change-Id: Ie63eb989d334906657fd16fe35386df198654c28 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Update documentationAlan Alpert2012-03-2710-15/+48
| | | | | | | | | Added \inmodule tags for qml module classes which were lacking them. Also updated the \since to 5.0. Change-Id: Ia5d393d593fdb484893cd4e3796b6854d4c637b3 Reviewed-by: Jerome Pasion <jerome.pasion@nokia.com> Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Remove insignification from some fixed testsMiikka Heikkinen2012-03-264-8/+0
| | | | | | | | These tests no longer fail on Windows, so remove insignification from them. Change-Id: Ic4fd2fa83a0f706c1cbd5299d5243f65c3251f93 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Initial checkin for ZoomTool implementationSimjees Abraham2012-03-268-3/+431
| | | | | Change-Id: I0f2c8906a48b0c1d45fb980a349a8ffb135130b5 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Remove tentative commit from editorsPekka Vuorela2012-03-267-79/+15
| | | | | | | | | Feature to be reimplemented simplified. Now using new FocusAboutToChange event for using input method to commit stuff when window is losing focus. Change-Id: I81c96c36d9f0a1b38adb4324f3b892c33547cb50 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Fix horizontal alignment bug with rich textYann Bodson2012-03-262-2/+91
| | | | | | Task-number: QTBUG-21473 Change-Id: I3542d7fb49ec1ea370709c799167ec01cf5ed19c Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Remove QObject parenting from QQmlAbstractBoundSignal.Michael Brasser2012-03-269-76/+110
| | | | | Change-Id: If549cf57bbac18a986a2a0e63fdc76902d2dae43 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Use QQmlAbstractBoundSignal where appropriate.Michael Brasser2012-03-266-16/+11
| | | | | | | Prepare for the addition of another subclass. Change-Id: I340f735503e661d9d735f3316a065f807294921b Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Make sure window manager wakeup() can always wake upCharles Yin2012-03-261-1/+2
| | | | | | | | | 1. Change isExternalUpdatePending to true to avoid window manager sleep again immediately without processing any events 2. Also wake up the window manager if wait at posting sync event Change-Id: I184dba32a66379b688b585c27c4d01799c233e84 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* PathView was missing the maximumFlickVelocity propertyMartin Jones2012-03-264-24/+123
| | | | | Change-Id: I0ed4ff0fe169187f7a8e03597be7407e9896100d Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Add templated module api registration functionChris Adams2012-03-2614-31/+149
| | | | | | | | | | | | | | | This commit adds a templated module api registration function which allows clients to provide type information at registration time. We use this typeinformation in V4 if available, in order to allow module APIs to be used in v4 bindings. This commit also clarifies the ownership semantics of QObject module apis, and updates some documentation references which were missed during the rename of Declarative to Qml. Task-number: QTBUG-24894 Change-Id: Iebb61ca8d8eacbb15218549eab715e22f52a1474 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Update item anchors when the baseline offset changes.Andrew den Exter2012-03-263-0/+43
| | | | | | Task-number: QTBUG-24303 Change-Id: I75fb8eb8afb48a3f40fa159d914ac12ab6bc9ffe Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Support registered QFlags in QML methods and signal handlers.Michael Brasser2012-03-265-11/+48
| | | | | Change-Id: I2a71122303dcf7af4f07c3ffb73456bcdce62a74 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Basic system tests for ListView sectionsDamian Jansen2012-03-262-0/+265
| | | | | | Change-Id: I3f33aa77a4bbe87a832066bd1f527521dfa543ff Reviewed-by: Natalia Shubina <natalia.shubina@nokia.com> Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Correct double, triple click handling in canvas when in touch modeLaszlo Agocs2012-03-261-9/+10
| | | | | | | | | | | The correct MouseArea signal sequence for a triple click is press, release, click, press, doubleclick, release, press, release, click. However QQuickCanvas sent the doubleclick before the press and did not reset the timestamp of the last press, resulting in a sequence with multiple doubleclicks and missing press signals. Change-Id: Ied5f3ea93d3ad28128ce7db5c8190ab48961da6d Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove QQuickItem::sendAccessibilityUpdateFrederik Gladhorn2012-03-242-7/+0
| | | | | | | | This slot is unused and doesn't make sense since it's too generic. Change-Id: Idae4b7cc21a794151f87b0db6833bbd6350549fb Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Make sure we get a valid accessibleInterface in child_helper.Frederik Gladhorn2012-03-231-1/+1
| | | | | | | | With filtering out more items from the tree of accessibles make sure that if we get 0 returned we don't crash. Change-Id: I7926ab66cd037952f7042dc46092cf5e2096d7c6 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Filter accessible objects.Frederik Gladhorn2012-03-231-1/+8
| | | | | | | | | | Only include objects in the hierarchy if either they or their descendants are accessible. Change-Id: I4ed01ccfa2b095a5205f72af97acb6c8dbaa3e74 Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com> Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Add active and invisible states for accessibility.Frederik Gladhorn2012-03-231-1/+8
| | | | | | | QQuickView should expose the right states. Change-Id: I38c0ce8bea46a749efb0b9085fb0f646538698b2 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Add accessibility updates.Frederik Gladhorn2012-03-234-2/+37
| | | | | | | Re-add all accessibility updates with new api. Change-Id: Iec91c41a0137911ccf6e9f4fa907a378d9dd335a Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Prevent the root object from being garbage collected.Michael Brasser2012-03-236-8/+108
| | | | | | | | Passing the root object as a return value from a C++ function could cause the indestructible flag to be set to false. Change-Id: Ib70c666f0d0ffbb48bca1996c2517fbccafa5dc1 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fix crash issue for path animation and path interpulatorCharles Yin2012-03-235-0/+56
| | | | | | | | | | | When set progress value out of [0,1], path animation and path interpulator should make sure the value be modified in the valid value range, otherwise the QQuickPath::backwardsPointAt() will crash. Task-number: QTBUG-24308 Change-Id: Icd6e9165c9f844ddb8ec84c229eac4db5246a749 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Fix Sprite AssemblyAlan Alpert2012-03-231-2/+2
| | | | | | | | | | | This optimization doesn't account for the width of the assembled image possibly being too small to fit the whole source image width. Since it meant copying more image data than we needed, I'm no longer convinced that it actually is an optimization over a simple cut (as this patch implements). Change-Id: I3fe502a75979e972f62d9dbf26f1ffec9069a102 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Change smooth to be true by defaultGunnar Sletta2012-03-226-12/+18
| | | | | Change-Id: Ia74a5c76058a2822e61dfa2f7316ea0612ebc15c Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Share depth-stencil buffers between ShaderEffectSources of same size.Kim Motoyoshi Kalland2012-03-227-6/+406
| | | | | Change-Id: If325a38175249c3a3ffe5043d42ba35dbf90ce0c Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Update samegame demo to new layoutAlan Alpert2012-03-229-4/+200
| | | | | Change-Id: Ib9cf4fb29022c63ce24f7b8c7ca4ff17c149a9cb Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Check for null pointer dereferenceAlan Alpert2012-03-222-4/+4
| | | | | | | Standard defensive programming Change-Id: Ic2b89cacf06812441a2b8f02c6b22de431c50b4a Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Add move comprehensive tests for TextInput input mask.Andrew den Exter2012-03-221-0/+489
| | | | | | | | This was previously covered by tests for QLineEdit but since the two implementations have diverged we also need to test individually. Change-Id: I00ae7bfd96302d08af4364f577925e99882117a0 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Fix text wrapping and eliding with implicitWidth.Andrew den Exter2012-03-228-37/+256
| | | | | | | | | | | | Update the implicitWidth of the item before continuing with the layout rather than after it's completed this gives any bindings dependent on the implicitWidth the opportunity to update the width before the layout continues. Task-number: QTBUG-22680 Task-number: QTBUG-24251 Change-Id: I61cd96ad9891b22d8b83937ad2c06719f88976b6 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Update model view examples to common launcher format.Andrew den Exter2012-03-2211-245/+235
| | | | | | Change-Id: I8dc30a9ade3cbbfa91d51d85617975ad7d46ee15 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Update tutorialAlan Alpert2012-03-214-20/+20
| | | | | | | Updated paths, and updated arbitrary form factor Change-Id: I10ffedd6978fbe62050987a4e0e5ab8b120edfce Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Fix doAction with custom functions.Frederik Gladhorn2012-03-211-3/+3
| | | | | | | When calling invokeMethod, pass the function name without parentheses. Change-Id: I5a5a28242a98bf76347450b799c1d51c293f9ef4 Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
* Free ShaderEffectSource FBOs when no longer needed.Kim Motoyoshi Kalland2012-03-2110-83/+230
| | | | | | | | This commit also fixes handling of texture provider deletion in ShaderEffect. Change-Id: Ib22a9308a35325972bc545cf29de11bd625b22b2 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Allow qmlscene to quit immediately after startingMatthew Vogt2012-03-211-0/+9
| | | | | | | | | Useful for running tests that have no interactive element, where all computation is performed in the initialization phase of processing the QML source. Change-Id: Id3f87fc504a30eb4e351804a98fe265db8fe93c9 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Test unregistered local enums in QML methods and signal handlers.Michael Brasser2012-03-213-1/+41
| | | | | | | Also make sure valueC and valueD are initialized. Change-Id: I8ee78b7b779c37ca792300c7771ae9975f43d8bb Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Allow flick on press-move-release in Flickable.Laszlo Agocs2012-03-212-25/+36
| | | | | | | | | Right now it needs at least a press-move-move-release to start a flick which is not ideal for touchscreens because a quick, short flick may result in reporting only a single move. Change-Id: I9bf2b4fea23b0eea9d9d00f0e79ce34f4d964bea Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix margins for right-to-left modeBea Lam2012-03-214-23/+47
| | | | | | | | | | | | | | | The behaviour for considering left and right margins was inconsistent in views with a right to left layout; these values were reversed for extent calculations but not for general positioning. With this change the left and right margins are never reversed in a right-to-left layout, so minXExtent and maxXExtent calculations always use startMargin and endMargin respectively, regardless of layout direction. Also fixes calculation of endOffset in trackedPositionChanged() when in horizontal orientation. Change-Id: Ie00e3d4c2bd38d8fe6ac0213702206b88bfa895e Reviewed-by: Martin Jones <martin.jones@nokia.com>
* ListView system testsDamian Jansen2012-03-215-0/+1009
| | | | | | | | | | | Tests: Change of model, delegate and orientation at runtime Use of add, move and remove view transitions Changing of view transitions at runtime Task-number: QTBUG-21504 Change-Id: Icaeb5c0305c7db5db4c4b8c5ad5fd1d6393cc599 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Add new line to last line of qquickfolderlistmodel.proMartin Jones2012-03-211-1/+1
| | | | | Change-Id: Ia4baa8258b9ad40503abc0f88cb8e887b8f996a4 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Don't overwrite text selections made in focus handlers.Andrew den Exter2012-03-214-53/+234
| | | | | | | | | | Defer giving focus to TextInput or TextEdit until after other mouse press handling has been performed, otherwise setting the cursor position will overwrite any selection or cursor position set in the on(Active)FocusChanged handler. Change-Id: I6332642484de65138a444987b5a81be69c6f835f Reviewed-by: Yann Bodson <yann.bodson@nokia.com>