aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix inserting before the visible area into cache bufferBea Lam2011-11-222-4/+8
| | | | | | | | | | Items being inserted after the visible index must be created, even if they aren't in view (e.g. are in the cache buffer) otherwise they will not appear at the correct index in the visibleItems list. Task-number: QTBUG-22772 Change-Id: I235dc766a6abf4988872bb70aa40cdc767df8c96 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Move path with highlightMoveDuration: 0Martin Jones2011-11-221-1/+3
| | | | | | | Task-number: QTBUG-22786 Change-Id: I10043bfa5d8c622fc4e7a25bcb1f96ef43d23890 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Qt.locale() and JS locale type extension.Martin Jones2011-11-2213-6/+1353
| | | | | | | Task-number: QTBUG-17129 Change-Id: I69cbbe858735b750b4e37ce489f2fa1ad5d8b5d3 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Emit destruction signal before child contexts are destroyed.Glenn Watson2011-11-221-8/+8
| | | | | | | | | | | | | | | | | Verbatim comment from bug report: When using a QtObject inside an item, and then we call a function in the Component.onDestruction handler of that item, we get a crash. This happens because the QDeclarativeContextData engine has been invalidated before reaching QDeclarativeExpressionPrivate::evalFunction. Change code to emit the onDestruction signal before the child contexts are invalidated. Task-number: QTBUG-22535 Change-Id: Ic4983ae5fdf104ae977189c21dc202c9b02bc2bc Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fix default property preventing signals from being emitted.Glenn Watson2011-11-225-22/+279
| | | | | | | | | | | | Change the way connectAlias works so that even if the target for the connection is not available immediately, anything that is bound to it is notified when the target is changed. (Fix is authored by Aaron). Task-number: QTBUG-21580 Change-Id: Ida23c0e620069c50b123c71b5078929d4c7ec4e4 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Adding custom easing curves to property animationsAaron Kennedy2011-11-213-2/+54
| | | | | | | | QDeclarativeEasingValueType gets the property customBezierCurve. This allows to define a custom easing curve as a cubic bezier curve. Change-Id: I33ae128ce29bba2834eedcbb90a9769a5391f997 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Fix compile.Friedemann Kleint2011-11-211-0/+1
| | | | | | | | | Fix breakage introduced by qtbase:dc0b588162951b3412e835d931637d74cb4e98b5, missing forward declaration of QInputMethodEvent. Change-Id: I0b659c97b15b651effb589611641e97156e385d3 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Silence compiler warnings about unused variables (MSVC)Kai Koehne2011-11-218-6/+18
| | | | | | | Fixes most 'C4189: local variable is initialized but not referenced' warnings Change-Id: I8c5a1ba0a50dd3fcb22294e564425846362ee911 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix MSVC warning about struct vs class declarationKai Koehne2011-11-212-2/+2
| | | | | | | Change-Id: I00dc08c746b30f6d49b831989ae1d0d798b430a5 warning: C4099: 'QMetaObject' : type name first seen using 'struct' now seen using 'class' warning: C4099: 'QV4Program' : type name first seen using 'class' now seen using 'struct'` Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Clean up static analysis issues.Alan Alpert2011-11-217-21/+14
| | | | | | | Just removing overly defensive programming and unused variables. Change-Id: I1ffe7a5bd46375f74a8e71e7710d29bc1de02b7d Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Doc: Canvas doc review.Martin Jones2011-11-211-89/+75
| | | | | Change-Id: I6edf44c1db47ca58c426464f8e4c852bf71176f6 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Don't leak objects when a VisualDataModel is destroyed before a view.Andrew den Exter2011-11-211-0/+2
| | | | | | | | | | If an item is still referenced by a view when the VisualDataModel is destroyed delete it, otherwise it will leak as the view have no interface to release it and deleting the item won't delete the package. Task-number: QTBUG-22672 Change-Id: I7b89962d724d7a391c97722638e03b7a186b8a8f Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fixed more declarative -qtnamespace compilation issues.Rohan McGovern2011-11-211-0/+4
| | | | | Change-Id: I56a00af1e360887af97eb98f2c6756fb90ba75d6 Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Fix Qt Declarative namespace compilation.Toby Tomkins2011-11-216-3/+14
| | | | | Change-Id: Ib3294278985cd43e40610dacd7b69bf98ff4d788 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* GridView sometimes lays out one less column than expectedMartin Jones2011-11-211-33/+39
| | | | | | | | | | If the cellWidth/cellHeight was not a whole number the wrapping was unreliable. Calulate column positions more robustly, i.e. avoid comparing values subject to rounding errors. Task-number: QTBUG-21846 Change-Id: Ic3a90b36d542ce8af49461bd524e4405c74aece5 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Fix v8 handle leak in incubator code.Glenn Watson2011-11-211-0/+1
| | | | | | | | Release forceCompletion handle that is created in the constructor to avoid a persistent handle being leaked. Change-Id: I5b68d586e7a8e6ba48c018e21faac8108387fa2b Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Rewrite signal handlers at compile time.Michael Brasser2011-11-205-7/+16
| | | | | | | Task-number: QTBUG-22726 Change-Id: If2c3c00c646b2ed6b6899573a0b487c8deeaad3f Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Copy QSGEngine functions to QQuickCanvas.Gunnar Sletta2011-11-187-180/+230
| | | | | | | | | | | | Long term we intend to remove the QSGEngine class all together so this is the first step. It duplicates some of the logic but doesn't break anything. Also including an example on how to use it in examples/declarative/openglunderqml Change-Id: I69ed93ec5fa1b5c4c746169306d38f8d6ce80477 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Parent delegate items to PathView.Andrew den Exter2011-11-181-0/+2
| | | | | | | | | This is consistent with ListView and GridView and ensures the items live only as long as the view and are deleted on application shutdown where deferred delete events are discarded. Change-Id: I77174b2725310d068fbba89b57e0da59619ef22a Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix leak in QQuickParticleDataChris Adams2011-11-182-0/+6
| | | | | | | Task-number: QTBUG-22672 Change-Id: I14b436b0d968409bd71a6bf65db6c994f08dece1 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Fix crash in incubator when a guarded context is deletedAaron Kennedy2011-11-172-1/+2
| | | | | Change-Id: Ice7375c344b7e8d0d11cc6ee0bdfdf864ecd7109 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* QDeclarativeDebugServer: Crash FixAurindam Jana2011-11-171-9/+10
| | | | | | | Instantiate QPluginLoader on heap. Change-Id: I53a7cb669379d374e8b6f83fe998c0bb17fbce33 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Fixed QQuickShaderEffect::lookThroughShaderCode(), added autotest.Kim Motoyoshi Kalland2011-11-172-12/+18
| | | | | Change-Id: I1e4a1589e1482c21eedab4cd052c16b6653344fb Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Fixes crash in QSGDefaultDistanceFieldGlyphCache::resizeTexture()Yoann Lopes2011-11-172-82/+73
| | | | | | | | | The blit shader was not valid anymore after deleting and recreating a QQuickCanvas. Task-number: QTBUG-22783 Change-Id: Id13578006b89859b862685b3a695eb8b59a48c56 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Add debug description to shader effectsGunnar Sletta2011-11-171-0/+4
| | | | | Change-Id: Icb6d45003f534c6e2d8d2382b408de0e368df29c Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
* Performance optimization in transform node traversal.Tero Tiittanen2011-11-172-8/+12
| | | | | | | | | | | | | Transform node matrix calculation was modified to use the combined matrix stack instead of matrix stack. Combined matrix stack has already been used by clip and geometry nodes. This improves performance because combined matrix stack stores pointers (matrix stack stored objects). It also removes duplication of information. Change-Id: I1a5a2546fa9aa5a4823328dd8a321ddc42fd15a0 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Optimization for context2d paintingCharles Yin2011-11-173-13/+12
| | | | | | | Avoid pass painting state by value. Change-Id: I86529ee7357b6cadbaa941b296d7ad025977f2aa Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Use QQuickChangeListener for better performanceGunnar Sletta2011-11-162-9/+22
| | | | | Change-Id: Ia959cf905fd0a03f7f69b6b65b2eeed8e4a62153 Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
* Debugger: Add unit tests for v8 profiler serviceKai Koehne2011-11-161-2/+2
| | | | | Change-Id: I556b9c537a43347b42669b2272925af6b05e6014 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Fix console.log function.Jędrzej Nowacki2011-11-161-3/+5
| | | | | | | | | This patch fix problem of a truncated log message if it includes an object. The regression was introduced by a7f5c93de3f9811eef3f5a19ab6dec83b997e0d6. Change-Id: I080956ef3c902b6c4a57f5d0066c4616a449e661 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Change destruction order to avoid accessing deleted GL resourcesKent Hansen2011-11-161-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes a crash when a QQuickCanvas containing a Text item is destroyed. 202127f860208c21145e05685bc54219e1655dbd in qtbase fixed a resource leak with QOpenGLMultiGroupSharedResource; resources were not cleaned up correctly when the associated GL context (group) was destroyed. This exposed a bug where QSGDefaultDistanceFieldGlyphCache (used for Text items) relied on that leakage. In particular, the glyph cache stores a pointer to a GL resource that it doesn't own (m_textureData). If the GL context is deleted and there are no other contexts in the group, the group and its resources will be deleted. Subsequently, if the glyph cache accesses the resource pointer when the Text node is destroyed (via QSGDefaultDistanceFieldGlyphCache::releaseGlyphs()), we crash. The GL context is deleted when QQuickCanvasPlainRenderLoop is destroyed. By moving the deletion of the render loop object to the end of QQuickCanvas destructor, the canvas nodes get a chance to clean up the resources they use _before_ the resources are deleted. Task-number: QTBUG-22754 Change-Id: Ie8de19a139b4631a16203e63e731feed3d8d64cf Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Allow aliases to QVariant propertiesAaron Kennedy2011-11-161-1/+2
| | | | | | Task-number: QTBUG-22464 Change-Id: I449d4fc709d34a69116258660d721596cd9b778b Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Improved comments on threaded renderer a bitGunnar Sletta2011-11-161-3/+3
| | | | | Change-Id: I1ee3879bde219e0008d70117dbfdd14f7da31f18 Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
* Make non-threaded VME interpreter work againKent Hansen2011-11-161-2/+4
| | | | | | | | | | | | | | | | 625bb0520708879ef5d281ab0c62fc7ad5415441 added a statement to the QML_NEXT_INSTR macro without turning the macro definition into a block. This caused statements like if (foo) QML_NEXT_INSTR(bar); to unexpectedly break from the switch (the second statement in the QML_NEXT_INSTR expansion is "break"). Change-Id: I384280eaea1dd1f3b940be67d589f3a03d9e8685 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Fix for moving multiple items to top of viewBea Lam2011-11-161-7/+11
| | | | | | | | | | Top item wasn't positioned correctly when moving multiple items backwards to the top of the view. Don't move visibleItems.first() if we've already repositioned the top item correctly. Task-number: QTBUG-22762 Change-Id: Ib216adea719044ee55349478237473ff3194a326 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Avoid calling maybeUpdate() during ShaderEffectSource cleanup.Kim Motoyoshi Kalland2011-11-161-0/+2
| | | | | | | | | markDirtyTexture() causes sceneGraphChanged() to be emitted from the renderer containing the ShaderEffectSource, which in turn causes QQuickCanvasRenderThread::maybeUpdate() to be called. Change-Id: I3c068e41501ed4cb2c5f4ff705ffd478743b4beb Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Fixed some copy-paste errors is documentation.Tero Tiittanen2011-11-161-4/+4
| | | | | Change-Id: I882df7dffea032e9fae16e87f48f70c5d26beb26 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Texture coordinates fixed in subrect tiling in SG image node.Tero Tiittanen2011-11-161-4/+9
| | | | | | | | | Fixes the texture coordinates for the inner tiles in a tiling algorithm that scenegraph default image node uses when texture is a subrect and image repeats. Change-Id: Iacf3e63c4c02bdbdc473f8128efecc7908322a50 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Fixed deferred deletion of objects in the render thread loop.Kim Motoyoshi Kalland2011-11-161-1/+3
| | | | | | | processEvents() does not process DeferredDelete events. Change-Id: Iee8491b7c63a26af8e36f777d872115ab1b64763 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Fix refill where zero-size items are involvedBea Lam2011-11-161-8/+24
| | | | | | | | | | | | | 881091b5c0f1d2ead2b70e54f7ac2e4c17680b4e was incorrect since it meant that any items following zero-sized delegates would not be deleted as they scrolled up past the top of the view. refill() should be deleting these items as well as any zero-sized items before them. Task-number: QTBUG-22014 Change-Id: I10cd30bb85a8ec1ddaa2a1cbaa924192536ef6fc Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add optional count parameter to ListModel.removeGlenn Watson2011-11-165-17/+27
| | | | | | | | | | | When calling remove on ListModel, it's now possible to supply a second parameter giving the number of items to remove. If the count parameter is omitted, it defaults to one, which maintains the previous behaviour. Task-number: QTBUG-22601 Change-Id: I0fb5c394a2b312095ce6e99e379d0f789d3ab4e6 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove unused code in qquickimplicitsizeitem.Martin Jones2011-11-163-68/+0
| | | | | Change-Id: I47ad98e0c515ddc5a9ac224048cdf396cce22699 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Remove events from the revert list.Michael Brasser2011-11-162-3/+19
| | | | | | | | | State change "events" should be removed from the revert list the same way property changes are. Task-number: QTBUG-22583 Change-Id: Ia3f4d16ee8855d163a7f6118a0bc1f8492727940 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Add propagateComposedEvents property to MouseAreaAlan Alpert2011-11-153-6/+49
| | | | | | | | | While necessary, advanced event propagation isn't the common use case. Now needs to be explicitly enabled. Task-number: QTBUG-21081 Change-Id: Ibd8b4974934116dbfa32cc5e72037fd9b11015b4 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Make shader effects visible even if source is initially emptyGunnar Sletta2011-11-141-1/+6
| | | | | | | Task-number: QTBUG-21343 Change-Id: Iaa34d74d2458f0a9dc94c96ee13d3406e1d8f1cb Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
* Fix parsing of unary expressions.Roberto Raggi2011-11-141-2/+3
| | | | | | | | | | | | | | | | | | | | Prohibit the lexer to synthesize a semicolon token after the colon-sign of a binding declaration. The parser internally was rewriting the following bindings Component.onCompleted: ++foo as Component.onCompleted: ; ++foo Task-number: QTBUG-21310 Change-Id: I0558d17fd81b5abac81fb990502d49767ea40730 Reviewed-by: Christian Kamm <christian.d.kamm@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Use the property cache when compiling the V4 instructions.Roberto Raggi2011-11-144-30/+28
| | | | | Change-Id: Ifca6166328e7c20707fef153fa2b960da3a00a98 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Removed annoying warning about threadingGunnar Sletta2011-11-141-7/+0
| | | | | | | Task-number: QTBUG-21707 Change-Id: I7ea7c53f39e2474093d628b5a75a435353b87b87 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Fixed assert during QML shutdownGunnar Sletta2011-11-141-0/+6
| | | | | Change-Id: I680af9ccb417d3162277b5740a129ecd77feee7f Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Distance field glyph cache refactoring.Yoann Lopes2011-11-1418-805/+1199
| | | | | | | | | | | | | | | The distance field glyph cache is now an abstract class part of the adaptation layer. It can be implemented to define the way the glyphs are stored in graphics memory on a specific platform. The typical use case is for having a cross-process glyph cache. To implement a custom glyph cache, one has to override three pure virtual functions: requestGlyphs(), storeGlyphs() and releaseGlyphs(). The default implementation works the same way as before the refactoring (no cross-process cache). Change-Id: I6e231a119abbffbe36f5f0d690f0b8be0664ff4f Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>