aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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-282-3/+37
| | | | | | | | | | | | 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>
* Section comparison should be case insensitive.Martin Jones2012-03-281-4/+7
| | | | | | | | 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>
* TextInput to use password mask delay if platform style defines onePekka Vuorela2012-03-272-25/+10
| | | | | | | 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-272-5/+8
| | | | | | | | | | | 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-272-3/+32
| | | | | | | | 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>
* 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-265-47/+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-261-2/+15
| | | | | | 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-268-67/+108
| | | | | Change-Id: If549cf57bbac18a986a2a0e63fdc76902d2dae43 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Use QQmlAbstractBoundSignal where appropriate.Michael Brasser2012-03-265-13/+8
| | | | | | | 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-263-24/+69
| | | | | Change-Id: I0ed4ff0fe169187f7a8e03597be7407e9896100d Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Add templated module api registration functionChris Adams2012-03-267-17/+42
| | | | | | | | | | | | | | | 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-261-0/+4
| | | | | | 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-262-10/+24
| | | | | Change-Id: I2a71122303dcf7af4f07c3ffb73456bcdce62a74 Reviewed-by: Martin Jones <martin.jones@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-233-8/+13
| | | | | | | | 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-233-0/+6
| | | | | | | | | | | 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-221-6/+8
| | | | | 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>
* Check for null pointer dereferenceAlan Alpert2012-03-222-4/+4
| | | | | | | Standard defensive programming Change-Id: Ic2b89cacf06812441a2b8f02c6b22de431c50b4a Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fix text wrapping and eliding with implicitWidth.Andrew den Exter2012-03-225-20/+112
| | | | | | | | | | | | 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>
* 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 flick on press-move-release in Flickable.Laszlo Agocs2012-03-211-24/+22
| | | | | | | | | 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-211-7/+5
| | | | | | | | | | | | | | | 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>
* Don't overwrite text selections made in focus handlers.Andrew den Exter2012-03-212-11/+13
| | | | | | | | | | 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>
* Content size should not include trailing spaces.Andrew den Exter2012-03-211-4/+11
| | | | | | | | | | | | | | | Excluding trailing spaces from the content size means the cursor position also needs to considered in determining the width used by the text as unwrapped white space can push the cursor over the width of the item. Also corrects an auto scroll issue with right to left text identified in extending the tests. Task-number: QTBUG-24630 Change-Id: Iaab9eac03824b22f507154fa1d6e55376bd075a0 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Allow literal enum to int property assignmentsChris Adams2012-03-211-3/+15
| | | | | | | | | | | | | | Previously, enum to int property assignments were considered bindings. This commit adds support for assigning enum values to int properties as enums. Note that to use an enum in QML, it must have been declared with Q_ENUMS or otherwise registered as a metatype. Enum values from the global Qt object are also usable. Task-number: QTBUG-23403 Change-Id: I50db6cae54a24400ea472bde43619d547e4ceb78 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Fix consistency of parsing ISO 8601 date strings.Andrew den Exter2012-03-211-0/+3
| | | | | | | | | | | Use the UTC timespec for strings with no time zone qualifier as V8 does so we don't get different QDateTime in bindings depending on whether the string was bound directly, or parsed by constructing a new JS Date object. Task-number: QTBUG-24895 Change-Id: I8f74dae418aaeeaf06df33fe58ab4e3e3fea791b Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Disable module api object support in v4.Michael Brasser2012-03-211-2/+2
| | | | | | | | | | We cannot create the module object during compilation as compilation may be done in a thread. Disable this optimization until additional type information can be known at compile time. Change-Id: I416ebf7595e2916a28f22fa8ebf512cbf3a8cde3 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Support unregistered Qt namespace enums in QML methods.Michael Brasser2012-03-211-1/+12
| | | | | | | | | This brings the support in line with signal handlers, which should allow us to reuse the implementation there when appropriate. Also adds tests for both registered and unregisted Qt namespace enums. Change-Id: I366846626fc44d6d99b51e93fc9e3cb948c748f9 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Support (registered) non-local enums for signal/slot params in QML.Michael Brasser2012-03-212-3/+10
| | | | | | | | | | | | It's now possible to detect whether a registered type is an enum, allowing registered non-local enums to be used as parameters in signals and slots from QML/C++. Author: Glenn Watson <glenn.watson@nokia.com> Task-number: QTBUG-20639 Change-Id: I8c439f2dcc7bfd8ec31914b0c86cd3a1de3c038c Reviewed-by: Chris Adams <christopher.adams@nokia.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Don't register sub distance field glyph nodes with the glyph cache.Yoann Lopes2012-03-202-32/+39
| | | | | | | | | | | The original distance field glyph node takes care of the glyphs reference counting. The potential sub glyph nodes created when the glyphs are in another texture are note registered anymore with the cache and don't reference count their glyphs. Also got rid of unnecessary data members. Change-Id: I1544792d5d896c6de26e0838e4f80397759ea012 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
* Decouple QSGDistanceFieldGlyphNode from it's cache manager.Andrew den Exter2012-03-209-83/+99
| | | | | | | | | | | | | To implement a custom distance field glyph node currently it's necessary to also provide a duplicate implementation of QSGContext::createDistanceFieldGlyphCache() as the default implemention references the cache manager created by createGlyphNode(). By isolating references to the cache manager to just createDistanceFieldGlyph() cache it becomes possible to just overwrite createGlyphNode() and still use the default cache. Change-Id: I7261bdbf247966b55512d2671e2ee85239bcca05 Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
* Allow SG and GL resources to survive a releaseResources.Gunnar Sletta2012-03-203-0/+134
| | | | | | | | The presence of these functions required some documentation so I added some. Change-Id: Id66bb6704b3db788ed612ebd6497a5c16ee8b2ca Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Debugger: Disable debugging for qmlprofiler, qmltestKai Koehne2012-03-201-1/+1
| | | | | | | | | QmlProfiler uses the debugging API as a client, but doesn't have to be debugged itself. I don't think there's a use case to debug qmltest either. Change-Id: Ibc8849c77d807f96c6abec5cebc3581ab023d5ae Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Fix compilation on QNX.Tobias Koenig2012-03-209-0/+39
| | | | | Change-Id: I5e01cad23066a645c1434ce1463d370733f53e4f Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Update item focus even if it doesn't have a canvasBea Lam2012-03-202-33/+58
| | | | | | | | | | | | | | | | Currently the item focus data is not updated if it is not in a canvas. This means a subFocusItem may be deleted when the item is outside of a canvas, creating a stale pointer when the item is moved back into a canvas. This change also means that the last item to set focus=true will now consistently get activeFocus. Previously if an item did not have a canvas and then was moved back into the canvas, the first item found with focus=true would get activeFocus. Task-number: QTBUG-24616 Change-Id: Ia706bd6ba6bcbccd616b5019c7c0fae4c39afa7f Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Make QVariant conversion for JS null type symmetricKent Hansen2012-03-203-4/+7
| | | | | | | | | | | | | | | | If you pass (void*)0 to QJSEngine::toScriptValue(), or you pass a QVariant of type QMetaType::VoidStar containing a 0 value, you get back a QJSValue of type null (isNull() returns true); that's fine. However, if you called QJSValue::toVariant() on a JS null value, you would get back an invalid QVariant. The expected result is a QVariant of type QMetaType::VoidStar containing a 0 value. This makes the conversion of the JS null type symmetric and avoids loss of data. Change-Id: Ifa6e788152118f80adf9c2d7be1283f053b44294 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com> Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>