aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year in license headers.Jason McDonald2012-01-052350-2350/+2350
| | | | | Change-Id: I0a8d99909cac867dce72da70b1bbcb649989a51b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Document new Path elements.Michael Brasser2012-01-0515-6/+549
| | | | | Change-Id: Ic1e2aa7da63a7d9e12357a609fc52b3913f14f28 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Document qmlRegisterRevision()Martin Jones2012-01-052-9/+47
| | | | | | | Task-number: QTBUG-22688 Change-Id: I8a6610951dc8320d9872e971ac2d1d86508b8faf Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Support <pre> in StyleText textFormatMartin Jones2012-01-053-0/+25
| | | | | | | Task-number: QTBUG-23159 Change-Id: I842d066efb3a78defba61cc31060840f771f9b11 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Document inputMethodHints and cursorRectangle properties.Andrew den Exter2012-01-052-4/+103
| | | | | | | Task-number: QTBUG-22612 Task-number: QTBUG-20764 Change-Id: Ibab86c5934f0ad6e3115a00371a5b2a6961720b5 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Make tst_QQuickListView::margins() more reliableBea Lam2012-01-051-1/+2
| | | | | Change-Id: Ib66f5717316b4c8d71dbef408afbbb9b0698ad7a Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Eliminated usage of qttest_p4.prf in newly added test.Sergio Ahumada2012-01-051-2/+4
| | | | | Change-Id: I8f531276e1d769be116fea155c4c68cd698b8fec Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix clipping of TextInput contents.Andrew den Exter2012-01-052-19/+53
| | | | | | | | | | | | The boundingRect represents the clip rectangle of an item rather than the size and position of its unclipped content. This would prevent any content from being clipped except the boundingRect is only re-evaluated when the size of the item changes so the content is instead clipped to the size of the original content. Task-number: QTBUG-23422 Change-Id: I96f830f833129b3230f65452db67b00028c40d6a Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Use QSignalSpy to save some codeGunnar Sletta2012-01-041-24/+5
| | | | | Change-Id: If4a9b68c39facdca34482bbf3dc22ae607b294e8 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Fix moving mixed visible and non-visible View items.Andrew den Exter2012-01-042-2/+20
| | | | | | | | | | | | | | A removal for a move that included both cached and non-cached was only evaluating the first part of the removal and skipping the remainder. Don't skip all subsequent removals when two ranges are merged, instead reset the current indexes to the start of the merged range and continue on as normal. Task-number: QTBUG-23432 Change-Id: Ieda49e2f68cd0bbbd31ba1e7dfd5af7c3e350d78 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Examples: Remove commented out 'plugins' list from .qmlproject filesKai Koehne2012-01-0499-220/+0
| | | | | Change-Id: I24bacdd52f2f191dde8e0a2fa9718b38ab329597 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add length property and insert, remove and getText functions to TextInput.Andrew den Exter2012-01-043-5/+999
| | | | | | | | These mimic the functionality of their pre-existing counterparts in TextEdit. Change-Id: Idcb7549cd07ed3c287ab00b7828a3158690faf0e Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix crash in TextInput.Andrew den Exter2012-01-043-7/+43
| | | | | | | | | Ensure the text is laid out before calling componentComplete() on QImplicitSizeItem, as that can potentially evaluate bindings which would then access the uninitialized layout. Change-Id: I5152c1494c54209dae61c13b2f45d343fb76bf9e Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Initialize AnimIdxAlan Alpert2012-01-041-0/+2
| | | | | | | | Otherwise any attempted reads later will get a stale value from a previous particle (only happens with custom affectors though) Change-Id: Iab3c7736d5c01218174ef8b331057df57b591209 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Speed up TextInput and TextEdit creation.Andrew den Exter2012-01-042-4/+2
| | | | | | | | Update the canPaste property directly when changing the read-only property instead of connecting to the readOnlyChanged signal. Change-Id: Ic6f6ba66f6b94448045703f7d2a66218548190dd Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Added a link to Number::toLocaleCurrencyString in the doc.Denis Dzyubenko2012-01-041-0/+1
| | | | | Change-Id: If44cc225d132bd309efdb250aad74f8e11062e8f Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Introduce layerering support (ShaderEffectSource) directly in ItemGunnar Sletta2012-01-0327-38/+1160
| | | | | | | | | | | | | This is enabled by doing "Item.layer.enabled: true". The implementation is solely based on the existing shader effect (source) and simply swaps in a sibling next to the item when enabled. This change also adds the QSGTextureProvider to the public API, as it is now a natural part of the QQuickItem API since all items can be textures. Change-Id: I26705c11e92d5623a5121300acc123782b784077 Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
* Combined platform input contexts in tests into one sharedPekka Vuorela2012-01-035-164/+100
| | | | | Change-Id: Ie56f5f8ca5617db6be92d256d455cae585cd6a71 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Use Qt::ImhSensitiveData input hint on TextInput with password echo modePekka Vuorela2012-01-032-5/+5
| | | | | Change-Id: I1e9255af24b51ca42c1e6df7a92664be532ce725 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Remove use of Qt::ImhMultiLine, to be deprecated/removedPekka Vuorela2012-01-032-2/+1
| | | | | Change-Id: I02a1611c945bf3804081bb9d0cd8da470a5774d8 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Do not leak interfaces during hit testing (QDA::childAt())Jan-Arve Saether2012-01-031-0/+1
| | | | | Change-Id: Iebbc1cbbdce57bff6423fa417eac8dbdfe35e510 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Don't set the role to Accessible.ButtonJan-Arve Saether2012-01-031-1/+0
| | | | | | | | If an item intend to expose its children, it should not set its role to Button Change-Id: I6b56d1354ce06f65513688ef38c507bd2881ce82 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Examples: Hard-code the 'main' file in .qmlprojectKai Koehne2012-01-0365-65/+209
| | | | | | | | | | | Set the 'mainFile:' property in .qmlproject files where it makes sense (i.e. there's one natural candidate). This makes sure Qt Creator doesn't fall back to 'current file in editor' as main file, which is unexpected to a lot of people. (This requires Qt Creator version 2.2 and newer). Change-Id: Ia5d20b0d982038520d7892bca155267c5f13644b Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix positioning of images on new lines in Text elements.Andrew den Exter2012-01-031-1/+1
| | | | | | | | | If an image in a text node is at the start of a line include the relative position of the line when positioning it. Task-number: QTBUG-23410 Change-Id: Ic9927bf86386374a23acfc6b4478a26f86d43ec6 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix test failures with shadow builds.Andrew den Exter2012-01-0363-206/+215
| | | | | | | | | | QFINDTESTDATA uses __FILE__ to determine the source directory, which means it finds the wrong source directory when the macro is used from a shared base class. Define the correct source directory in a pri file and include that wherever QDeclarativeDataTest is used. Change-Id: If3ef435f4bb3049733f49402338303c8b440f1fa Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Simplify MultiPointTouchArea signal names.Michael Brasser2012-01-034-20/+36
| | | | | Change-Id: I0617bf7138b76495c111739e2cbdf3b77c4b6a5d Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Don't re-parent ShaderEffect source items.Kim Motoyoshi Kalland2012-01-027-21/+66
| | | | | | | | | | | ShaderEffect and ShaderEffectSource used to set themselves as parent of and hide source items that don't already have a parent. This was done in order to make sure the source items got a canvas. This patch sets the canvas of the source items without re-parenting. Task-number: QTBUG-23069 Change-Id: I24d56e6eb970590bca3adff7a61459d25e4983a0 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Add accessibility to qmlFrederik Gladhorn2012-01-0254-1/+3724
| | | | | | | | | | | | | | | This consists of two parts: An attached property for QML items and a plugin for the accessibility framework. The attached property simply takes care of some properties (name, role) that are needed in order to expose semantics of the application to assistive tools. The plugin exposes the hierarchy of QML items to the accessibility framework. Change-Id: I32f5603d0d9549b01b3645b205b710b9801762f7 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* touchUpdated should be called for release and cancel.Michael Brasser2011-12-304-3/+20
| | | | | | | | touchUpdated should be emitted whenever the touch is updated, even if the update means there are no longer any valid touch points. Change-Id: Iceac5a65094784928108acc764bbc1d5c2b9a08a Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Minor cleanup: use standard emit syntax.Michael Brasser2011-12-301-3/+3
| | | | | Change-Id: Ic8a86e78bc16dd091eb03ba74ffdf831eda65a7a Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Update to not use old properties.Alan Alpert2011-12-303-6/+6
| | | | | Change-Id: I428d702613186adfc761925de23ae67677f286ba Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Handle exceptions inside QV8QObjectConnectionList::qt_metacallChris Adams2011-12-293-0/+51
| | | | | | | | | Previously, exceptions were not handled in the connectionlist. This could cause v8 to assert under certain circumstances. Task-number: QTBUG-23375 Change-Id: Ie5f043b50bb6b02a77be464ca18ea8e3bbb0f501 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Invisible items should not respond to touch events.Michael Brasser2011-12-282-1/+29
| | | | | | Task-number: QTBUG-23327 Change-Id: I959c9ba40e4ce3972fc3fde2f1c7e73615e78e2e Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* VisualDataModel performance improvements.Andrew den Exter2011-12-233-27/+16
| | | | | | | | | | | | | | Avoid a linear scan of all cache items and associated accesses by getting the cache item from an objects vdm attached object instead. Make the model context property a property of the context object instead of a separate property on the context object. Parent the vdm attached object to the delegate object with QDeclarative_setParent_noEvent instead of passing it in the constructor. Change-Id: Ib77c5cdb963f3dfe8f2bdef039e010a6bb30140f Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Insert items into VisualDataModel.Andrew den Exter2011-12-2318-221/+2578
| | | | | | | | | | | Add API for inserting data directly into a VisualDataModel which can be used among other things to create temporary items that are later resolved to an actual item in the source model. Task-number: QTBUG-21516 Change-Id: I835f0e8d6c5edfb3a21029687de5b700f7400317 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Minimize the number of objects created per item in VisualDataModel.Andrew den Exter2011-12-2311-754/+993
| | | | | | | | | | | | | | Derive from QDeclarativeContext and reference count the context object instead of parenting it to the context. Combined with a weak persistent v8 handle the allows the context object to be returned by javascript accessors instead of creating a new instance for every use. In addition to the efficiency advantages of creating fewer objects, routing all data access through a single object means that object can also persist data instead of just acting as a proxy. Change-Id: I107dc8c901f16f2a4b420ff1cbffa7a6be27de89 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add currentSprite property to SpriteImageAlan Alpert2011-12-233-10/+27
| | | | | | | | Also renames goalState to goalSprite, to help distinguish it from item states. Change-Id: I77e81595586e69e47a50a7a767fdb7ad775ad7be Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix crash in var property setterChris Adams2011-12-234-0/+15
| | | | | | | | | | | Previously, the function didn't terminate after calling the setter recursively, as it should have. This patch ensures that the setter is called correctly and then returns, and adds a unit test to ensure that no regression occurs. Task-number: QTBUG-23330 Change-Id: If512fca174e5224c2c53caad11f77782e6cead9f Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Add a pressed property to TouchPoint.Michael Brasser2011-12-234-139/+258
| | | | | | | | | | | Remove the valid property, and replace it with pressed. The semantics have changed slightly for a release -- pressed will immediately become false, whereas valid remained true until the next touch event. Also make sure touch information is correctly updated on release. Change-Id: Ic61e1b6884c67f19100a6f8fc218b8b05b291ff0 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Reserve enough space in the QDeclarativePropertyCache hashAaron Kennedy2011-12-224-11/+56
| | | | | | | | It was too easy for callers of copy() to pass the wrong reserve size, so a new copyAndAppend() method has been added to reduce error. Change-Id: If2f13e2e0733e5d87c527934dc5a6c8d0c8df572 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Always register accessor propertiesAaron Kennedy2011-12-221-0/+3
| | | | | | | | Otherwise if an Item gets created without the QtQuick module being imported, the engine would fatal. Change-Id: I441c7a61a60f07f2a7e3249253dea359d4ab1c35 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Initialize more variablesAlan Alpert2011-12-221-1/+3
| | | | | Change-Id: I22f98c1562887769bc0f262120bd524f6f3b64df Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Clear pending commits on resetAlan Alpert2011-12-223-2/+5
| | | | | | | They will be caught when the nodes are rebuilt, if they're still valid. Change-Id: Iac6e790b604a7deaba98a50dd07754459e9f5e14 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Detect and optimize qsTr() and qsTrId() bindingsAaron Kennedy2011-12-2111-40/+244
| | | | | | | | | As these two are frequently used with constants, we can detect them in the compiler, and run the appropriate C++ functions directly in the VME. This saves pointlessly creating and running bindings. Change-Id: I148a150400c13fda7955949453405202f18b1a6b Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* QDeclarative tests: Introduce base class for data tests.Friedemann Kleint2011-12-21122-1917/+1900
| | | | | | | | | | | | | | | | | In tests/auto/shared/util.* replace macros/find functions by a base class QDeclarativeDataTest with accessors for the data directory helper functions to create URLs from it. The class relies on QFINDTESTDATA, which is the standard way of locating test data. Using the class should reduce the number of calls to QFileInfo.exists(), etc significantly. In addition, provide utility functions for messages. Reviewed-by: Michael Brasser <michael.brasser@nokia.com> Change-Id: Id2beacb157922ee9412f9e45cf9695cec1f8379a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Debugger: Allow transmissions of network packets in one goKai Koehne2011-12-219-24/+38
| | | | | | | | | We did call a flush() after every single packet, which was slowing down things especially for the QDeclarativeDebugTrace service. Change-Id: Idab074941a22364e154502eb12afa43b4dd33c22 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com> Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Reference count glyphs in QSGDistanceFieldGlyphCache.Yoann Lopes2011-12-215-39/+38
| | | | | | | | | | | | | This was previously done only in the default cache implementation. It has been moved to the base class. releaseGlyphs() is called when a glyph is not referenced anymore by any node. Added a virtual function referenceGlyphs() that is called everytime glyphs are being used in a node. This function is called just before requestGlyphs(). Change-Id: If90f86c328c18ae2a5977847a6adf50b99ea1241 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
* Adapted QDeclarativeTextEdit test to platform input contextPekka Vuorela2011-12-211-208/+151
| | | | | | | | Also couple more tests start to pass as side-effect Change-Id: Ie3e8bafa1d397301da3f7af57b026f52b9cf5d21 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Adapted QDeclarativeTextInput test to platform input contextPekka Vuorela2011-12-211-130/+117
| | | | | | | | Also a couple more tests starts to pass as side-effect. Change-Id: I1723d4b5eccbe7abe2ac91ddc8318ac32c1f7e61 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Remove uneccessary layout in TextInput initialization.Andrew den Exter2011-12-213-28/+17
| | | | | | | | | | The layout was only done to ensure there was always at least one QTextLine in the layout to avoid validity checks later, but since lineForTextPosition can return an invalid QTextLine the checks are still needed anyway. Change-Id: Iae65e3460812a60e2aafecd553bf4241bd640d04 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>