aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Initial particle system benchmarkAlan Alpert2011-10-177-10/+221
| | | | | | | Exposed another function on ParticleSystem in order to work. Change-Id: I62acf524eb2c6491bc88fd687a0065866d7ce852 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix testsBea Lam2011-10-171-2/+2
| | | | | | | | Fix referenced test data file and don't wait so long for move to process Change-Id: I55571e99015f2799a231365532aa1778e148f9e5 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Cannot flick to the end of a horizontal ListView with LayoutMirroringMartin Jones2011-10-1710-144/+406
| | | | | | | | | | | | | | | Forward port of fix for QTBUG-21756. minXExtent calculated the offset due to highlight range incorrectly (reversed) when mirroring enabled. Also us same algorithm for fixup() in GridView and ListView uses. For QtQuick 2, this change also reverses the beginning and end highlight range, as it should be, i.e. the preferredHighlightBegin is from the right side in RightToLeft mode. Also added snapping tests. Task-number: QTBUG-21756 Change-Id: Ica0ba4ab5db0ce9c77f2da75e9f8293550bd37d1 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Merge PropertyCache::Data and ValueTypeDataAaron Kennedy2011-10-1715-252/+282
| | | | | Change-Id: I22cbb159d009151dd77ecbcdad16f27ecb9d6dba Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Allow sizing of TrailEmitter emit area based on particle sizeAlan Alpert2011-10-173-18/+30
| | | | | Change-Id: I7ce2ba29459b9a66e62933f9bfb9e066baedaaef Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Eliminated usage of qttest_p4.prf.Rohan McGovern2011-10-143-9/+9
| | | | | | | Missed from 47e1b91b47dcf59dbeff2740add94ceda188c6bc. Change-Id: I64d6174eb98eb45e1ba7c28ae5a122f58e2522a6 Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
* Add Move affectorAlan Alpert2011-10-147-5/+441
| | | | | | | | | Slated to replace the 'Gravity' affector which only did one specialized gravity usecase anyways. This one is more generic. Change-Id: I3cbb975bad24e8f6fca7e07b671aa8ba5a3a916c Reviewed-on: http://codereview.qt-project.org/6657 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Fix insertions above the visible indexBea Lam2011-10-146-82/+482
| | | | | | | | | | | | | | | | | The first visible item was repositioned incorrectly after an insertion above the visible index since any insertions above the position + cache buffer were ignored and not considered for repositioning the first item. GridView insertion code has changed to be similar to the ListView implementation to fix various issues when inserting above the visible index and to remove code that crossed indexes from visibleItems with model indexes and visible indexes. Also adds extra insertion tests for ListView and GridView. Change-Id: I5e129c605fdad733b61bd29850465b3b752fb63f Reviewed-on: http://codereview.qt-project.org/6485 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Remove QMetaObjectBuilder from declarative.Friedemann Kleint2011-10-149-2938/+6
| | | | | | | | Link on Windows. Change-Id: Idca11c1a21ad5aebf79d6487692d912b4dea249f Reviewed-on: http://codereview.qt-project.org/6553 Reviewed-by: Lorn Potter <lorn.potter@nokia.com>
* (private-) export QSGShaderEffectTexturejuhvu2011-10-141-1/+1
| | | | | | | | | | | | | | | | | | QtLocation maps need to be able to render standard QML elements as Map items (for example a convenience store logo and text). Prior to Qt5 this was achieved with Qt graphics view framework. This export is needed in order to be able to ask QML engine to generate/update/render textures as needed. Only private symbol really used is the updateTextures(). This commit complements the related earlier commit 1780033cb259bbb166fe9b4b14c92829a8e1800e Change-Id: I98b2083b6a4d25fdd113ac4d95a9b9a2bb13a1f1 Reviewed-on: http://codereview.qt-project.org/6475 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Add missing autotests to declarative.pro.Michael Brasser2011-10-142-0/+6
| | | | | | Change-Id: Icf43fc3aa69ac80fc077318d903becf3b78cc55b Reviewed-on: http://codereview.qt-project.org/6492 Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
* More use of TESTDATA macro.Michael Brasser2011-10-149-65/+92
| | | | | | Change-Id: I65ff7aa44e18a60e431d30efec2717d2ce5f95e4 Reviewed-on: http://codereview.qt-project.org/6641 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* only use one QSGView instance for all qml test casesCharles Yin2011-10-141-13/+14
| | | | | | Change-Id: I9296e30d216b57d8cf2a11e94030781f03594aa6 Reviewed-on: http://codereview.qt-project.org/6646 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Tst_qsgitem2 test update inline with refactorDamian Jansen2011-10-144-15/+55
| | | | | | | | | | Change widget to window based code Make compile and pass Add license header Change-Id: Id0826bf644836654de7eff559a8ff40a55d02616 Reviewed-on: http://codereview.qt-project.org/6635 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* QDeclarativeIncubator wasn't calling statusChanged() for nested casesAaron Kennedy2011-10-144-22/+73
| | | | | | | Change-Id: I1811951bdcdd69d4ad1643ed54a8ea097fa718b5 Reviewed-on: http://codereview.qt-project.org/6638 Reviewed-by: Martin Jones <martin.jones@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Fix creation context for delegatesBea Lam2011-10-141-1/+3
| | | | | | | | | As per cdf868033bbd7bf5a996c67fa56f8ac15e755115 for ListView and GridView. Change-Id: I6928a1fd4df51265124925530e81704dbdc5af46 Reviewed-on: http://codereview.qt-project.org/6629 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Remove unneeded includeKent Hansen2011-10-141-1/+0
| | | | | | Change-Id: I8db00cee46dfb7f2a3bc4e73d093be3d766a8f7c Reviewed-on: http://codereview.qt-project.org/6486 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Use TESTDATA macro in declarative tests.Michael Brasser2011-10-14101-726/+796
| | | | | | | | | Includes a few other minor cleanups as well. Task-number: QTBUG-21721 Change-Id: I5b1c2c116e63748c6b4199183212de8a00037af1 Reviewed-on: http://codereview.qt-project.org/6473 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Don't build empty tests.Jason McDonald2011-10-146-20/+7
| | | | | | | | | | These tests need the xmlpatterns module. If that module is not in the Qt build, then avoid building the test rather than building an empty test. Change-Id: Id0f72cfc9f818096361ecbc439196d2d5c64322e Reviewed-on: http://codereview.qt-project.org/6487 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* QDeclarativeDebugTrace: Speed up appending elements to traceKai Koehne2011-10-121-1/+4
| | | | | | | | Using a QVector with a Q_MOVABLE_TYPE with QVector should speed up appending stuff by a magnitude. Change-Id: Icf5cee87a0f35d81bf85f833f5656a9b296c80fd Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Fix V8 heap snapshot in profiler serviceMikko Harju2011-10-121-10/+8
| | | | | | | | | | | Fixes the message parsing (use the option also for heap snapshot commands). Do not directly serialize the snapshot to the QByteArray under QDataStream. Change-Id: I3ad15a2debd6c2f912854610b6434744e0acd788 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Fix compilation on HarmattanSimon Hausmann2011-10-121-11/+11
| | | | | | | | | | Fix issues with QString::QString(const char*)' being private Change-Id: Ie3152d5fe952976dbda0ecb9dc28f9b6b5a1fab4 Reviewed-on: http://codereview.qt-project.org/6508 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Removed references to unused PULSE_TESTS variableRohan McGovern2011-10-123-9/+0
| | | | | | | | | | This has not been used for a very long time (since before QtDeclarative was merged into Qt4). Change-Id: Ie5b4578582d7b04784f11db3d8ce92ba258b782d Reviewed-on: http://codereview.qt-project.org/6484 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Modify existing behavior to explicitly test functionality.Toby Tomkins2011-10-122-1/+2
| | | | | | | | | Task-number: QTBUG-21001 Change-Id: I63d0d56cc05328350804ad03cbc9a943a84d03c3 Reviewed-on: http://codereview.qt-project.org/6377 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Provide a context when constructing a TextInput cursor delegate.Andrew den Exter2011-10-126-5/+15
| | | | | | | | | | | Without a context the delegate won't be able to refer to any external properties. Task-number: QTBUG-21780 Change-Id: I7171787e677ce67466b311796693ed88bcacb718 Reviewed-on: http://codereview.qt-project.org/5837 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Rename QDeclarativeV4 -> QV4Aaron Kennedy2011-10-1234-283/+282
| | | | | | | Change-Id: Ic35e0ad1663cafe4aa535594dc3999a2d317ce0e Reviewed-on: http://codereview.qt-project.org/6301 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Sanity-Review: Aaron Kennedy <aaron.kennedy@nokia.com>
* Remove insignificant test status and explicitly mark failing test.Toby Tomkins2011-10-122-2/+1
| | | | | | | | | Task-number: QTBUG-21946 Change-Id: If1837a23041b52dc1f148821f483281975626d79 Reviewed-on: http://codereview.qt-project.org/6374 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove insignificant flag for passing tests.Toby Tomkins2011-10-126-11/+2
| | | | | | | Change-Id: Ic8c5e7871b240572b882825c91e0a544856da687 Reviewed-on: http://codereview.qt-project.org/6384 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* fix crash bug when unloading canvasCharles Yin2011-10-123-5/+2
| | | | | | | | Task-number:QTBUG-21935 Change-Id: If4a2a92b2f53cf81a48d023df8a1e6d11e522e0d Reviewed-on: http://codereview.qt-project.org/6370 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* fix several canvasitem bugsCharles Yin2011-10-126-13/+36
| | | | | | | Change-Id: I6a6d97253fe66184736f8ac089e97aa114f0e83a Reviewed-on: http://codereview.qt-project.org/6405 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Allow view items to be preserved.Andrew den Exter2011-10-127-30/+430
| | | | | | | | | | | | | | | | | | | | Do not destroy items that are members of the VisualDataModel persistedItems group when they are released by the view. The create function on VisualDataGroup will return a reference to an instantiated item within that group, any item returned by this function is automatically added to the persistedItems group and can be released by removing it from the group. Uninstantiated items added to the persistedItems group by any other means are not instantiated until requested by a view or create. Task-number: QTBUG-21518 Task-number: QTBUG-20854 Change-Id: I59554711208504c8f20a3ebe783bddab9b21a558 Reviewed-on: http://codereview.qt-project.org/5831 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove aggregated heap snapshotsAaron Kennedy2011-10-121-3/+1
| | | | | | | | | | Newer versions of v8 only support full snapshots. Change-Id: I2c6778579bdb2ec1cc38868bf4fa76ce3fbc1633 Reviewed-on: http://codereview.qt-project.org/6406 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Sanity-Review: Aaron Kennedy <aaron.kennedy@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Optimize signal handlingAaron Kennedy2011-10-1216-487/+404
| | | | | | | | | | | | | | | Bindings connect to lots of signals that are never emitted. By managing signal connection lists ourselves, we can do a much better job than Qt's generic signal/slot connection logic. Also, by connecting to QDeclarativeNotifierEndpoint's rather than QObject slots, we can eliminate the need to instantiate a QObject for the V4 and V8 binding managers. Change-Id: I598667deaefdbd2860227bd74378a1b196761686 Reviewed-on: http://codereview.qt-project.org/6278 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Sanity-Review: Aaron Kennedy <aaron.kennedy@nokia.com>
* Component.incubateObject() autotestAaron Kennedy2011-10-123-5/+127
| | | | | | | Change-Id: I37f76d5b273ae4f032c4de5ac8fcbff4204b78fe Reviewed-on: http://codereview.qt-project.org/6200 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Sanity-Review: Aaron Kennedy <aaron.kennedy@nokia.com>
* Improvements to text layouting in QMLYann Bodson2011-10-128-17/+406
| | | | | | | | | | | | | | | Allow more control over the text layouting process in QML. Give access to every text line through a hook, this gives the opportunity to position and resize a line as it is being laid out. It is then possible to lay out the text in columns or around other objects. Task-number: QTBUG-21367 Change-Id: I56dc0c1c4b575dc06360c135098024d0324d3656 Reviewed-on: http://codereview.qt-project.org/5351 Reviewed-by: Yann Bodson <yann.bodson@nokia.com> Sanity-Review: Yann Bodson <yann.bodson@nokia.com>
* QmlProfiler: send end of trace eventChristiaan Janssen2011-10-112-1/+6
| | | | | | | Change-Id: I2e857028bde15145d5d01c6f5325a4ceabb37e27 Reviewed-on: http://codereview.qt-project.org/6434 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* More accurate timing for rendering threadJiang Jiang2011-10-111-3/+29
| | | | | | | | | | | | To get a better overview of how much time we consumed rendering each frame, setting QElapsedTimer around each loop in the rendering thread. It can be turned on with QML_CANVAS_TIMING=1 environment variable. Change-Id: I81a231983e5f7d898589d5fe18782dd5c7e8e0dc Reviewed-on: http://codereview.qt-project.org/6420 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
* QmlProfiler: tracking animationsChristiaan Janssen2011-10-112-7/+49
| | | | | | | Change-Id: I78fa5ed5385dfe1715c9d05a5e63eb7185870e61 Reviewed-on: http://codereview.qt-project.org/6254 Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* QInputPanel exposed as a property from QDeclarativeApplicationSami Kananoja2011-10-115-1/+32
| | | | | | | | | Task-number: QTBUG-21449 Change-Id: I437f80f4d1f0dbb3cb410940213eae50a4cef2cd Reviewed-on: http://codereview.qt-project.org/5852 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* tests: eliminated usage of qttest_p4.prfRohan McGovern2011-10-11159-468/+459
| | | | | | | | | | | | | | qttest_p4.prf was added as a convenience for Qt's own autotests in Qt4. It enables various crufty undocumented magic, of dubious value. Stop using it, and explicitly enable the things from it which we want. Since QT+= had to be touched already, this change also removes a lot of useless duplication on those lines. Change-Id: I9f2f20eaf4a0e676beddf474c7db8680e4712f78 Reviewed-on: http://codereview.qt-project.org/6302 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
* Remove insignificant test status and explicitly mark failing test.Toby Tomkins2011-10-112-2/+1
| | | | | | | | | Task-number: QTBUG-21946 Change-Id: Idf54ad4811562634b792f973c9f1a518a09e5a4d Reviewed-on: http://codereview.qt-project.org/6375 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix layout issues with recently removed items.Andrew den Exter2011-10-112-396/+1055
| | | | | | | | | | | | Items removed from the source model aren't removed from the cache group until they've also been released by the view. Skip over these removed items when translating future changes to the source model so no invalid translated changes are created. Change-Id: I9bf3801135e78b5a6493b4ef50ce44ee5c912bfc Reviewed-on: http://codereview.qt-project.org/6298 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* fix canvas bugCharles Yin2011-10-113-19/+14
| | | | | | | | | | | do painting only after component loaded and paint after geometry size initialized Task-number:QTBUG-21920 Task-number:QTBUG-21918 Change-Id: Ibbc12d416dc694eff35f16c03cbc3c16e333645b Reviewed-on: http://codereview.qt-project.org/6387 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Expand QSGImageParticle testAlan Alpert2011-10-1110-1/+467
| | | | | | | | | | | | Now tests all performance levels. Also fixes an emitter timing edge-case which might be destabilizing the tests. Change-Id: I5e2f133dc4b96dd05d49e7e983ae630e379fa66b Reviewed-on: http://codereview.qt-project.org/6313 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Documentation AugmentationAlan Alpert2011-10-111-1/+2
| | | | | | | | | The performance implications of adding an affector should be mentioned. Change-Id: I0d508b0dfd16a7e9a56bf5f3c7797d1f4dd6a609 Reviewed-on: http://codereview.qt-project.org/6314 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Stabilize Particles testsAlan Alpert2011-10-1121-6/+89
| | | | | | | | | | | | | | | One potential problem is that in certain circumstances the recycling data list is so efficient that it doesn't need to use all particle data in the list. In those cases, the uninitialized members were causing test failures but these slight differences are acceptable for the simulation. The ParticleSystem test is extended to check that it's only small edge cases. Change-Id: I5e2f133dc4b96dd05d49e7e983ae630e379fa66a Reviewed-on: http://codereview.qt-project.org/6312 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Initialize new particle data membersAlan Alpert2011-10-111-0/+8
| | | | | | | Change-Id: I1ba5aac70e662d64f9007a18465f520c8912ecf6 Reviewed-on: http://codereview.qt-project.org/6309 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* We no longer depend on qtsvgAlan Alpert2011-10-111-1/+0
| | | | | | | Change-Id: I5980634dd4f234d9b7d0bed56c4f4cab9459fb37 Reviewed-on: http://codereview.qt-project.org/6209 Reviewed-by: Martin Jones <martin.jones@nokia.com> Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Generic solution for finding QtDeclarative test data.Michael Brasser2011-10-113-12/+100
| | | | | | | | | | Also implemented changes for qsgrepeater test to verify. Task-number: QTBUG-21721 Change-Id: Ia5a839d1a23ba0f6ee144450ec026b74ee72134b Reviewed-on: http://codereview.qt-project.org/6203 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Use QBasicAtomicInt load() and store() instead of implicit castingBradley T. Hughes2011-10-104-16/+16
| | | | | | | | | | | | | The implicit casts will be unavailable in the near future. This is a follow up to commit 7f8472af8c03296be9e9ce50d8e9b3089eedf2f1, which didn't catch all usages of the implicit cast and assignment operator. Change-Id: If05c343e2851b41e4a351c56328c4406c688fa0d Reviewed-on: http://codereview.qt-project.org/6351 Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>