aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Declarative: Give qmlscene top level window flags.Friedemann Kleint2011-10-181-24/+28
| | | | | | | Add menu and close buttons on Windows as well. Change-Id: Ie458f8f21b14583c1a02d48819ec797e6db7390e Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Mark particles tests as significantAlan Alpert2011-10-1820-40/+0
| | | | | | | Believed to be stable enough for CI now. Except qsgage. Change-Id: I49d52c3913bb4140de89b769777f9b6d67abbaaa Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Fix assertAaron Kennedy2011-10-181-1/+1
| | | | | | Change-Id: I6db293c278f10be7e998ed15fe93b9d328474e6a Reviewed-by: Martin Jones <martin.jones@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Fix reference to test data fileBea Lam2011-10-181-1/+1
| | | | | Change-Id: I04e220635487d76d2908572ceb0f0696f6876e9e Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Simplify expression guard logicAaron Kennedy2011-10-187-38/+86
| | | | | | Change-Id: I7d191bc8786452c5a1f14d024ff62d223adebd8b Reviewed-by: Martin Jones <martin.jones@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Fix TextInput echoMode test failure.Andrew den Exter2011-10-182-2/+3
| | | | | | | | | The default input method hints for a QSGItem is Qt::ImhMultiline and TextInput is a single line input so clear that default flag in init. Task-number: QTBUG-21686 Change-Id: I3b57227ee4182bf89f6789f775b56efb156df85b Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove the InputContext module.Andrew den Exter2011-10-1815-1949/+1
| | | | | | | | | | | | | The input context module provided a bridge between QML and a QInputContext which allowed an application to implement it's own input method in-process. However since QInputContext has been replaced and now only exists as a QWidget compatibility API this module no longer works with the QtQuick 2 items and porting it to the new QPlatformInputContext API does not seem to be an option as there is no way to override the instance provided by the platform integration. Change-Id: Ica602377436fcea42b9ffd05e1b347e2ee52acc8 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Don't keep a cache of created QSGDragAttached objects.Andrew den Exter2011-10-185-42/+134
| | | | | | | It's unnecessary and can potentially return stale objects. Change-Id: Ia04b9a58757ef06d3178e6a64e168f68abc1c9d8 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Debugger: Fix compilation warningKai Koehne2011-10-171-1/+1
| | | | | Change-Id: I22fc756ce29bba2834bbdcaa40a9769a5391e337 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Fix QDeclarativeInspector when starting with ,blockKai Koehne2011-10-172-2/+13
| | | | | | Change-Id: I3797567f22f61abf59ec5332ebc74b3fa37ede93 (cherrypicked from commit 6cb43a9b72c67b71409a59fdeb419f390441f0c7) Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Create InspectorService only when debugging is enabledKai Koehne2011-10-172-4/+8
| | | | | Change-Id: Ie9704233012b0bd0e473c5ee6011e6382c61900f Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Make QDeclarativeDebugJS autotest more robust & fasterKai Koehne2011-10-174-19/+37
| | | | | | | | Also compile it by default (again). Change-Id: I04537e29d48cd1918160fe57220eecf1a72a8e66 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com> Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Fix coding style issuesKent Hansen2011-10-1739-225/+224
| | | | | | | Avoid Qt Sanity Bot noise when these files are moved. Change-Id: I714e949837909883fe7e387ae336d2ffc4a1912b Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Tidy up some more declarative includesKent Hansen2011-10-1717-21/+9
| | | | | | | Remove file dependencies that aren't needed. Change-Id: I0496ef9435141528f680bbd326da55c3a31e5978 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
* Clean up declarative includesKent Hansen2011-10-17160-543/+516
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (This commit is in preparation of moving several files to a separate library (QtQuick2).) Don't add all subfolders to the includepath (from the .pri files). There's no good reason to do that. For headers (both public and private) that are in the same folder as the file that includes them, prefer to use #include "foo.h" #include "bar_p.h" For public headers that are outside the current folder but have "unambiguous" names (e.g. qdeclarative prefix), use #include <foo.h> For private headers that are outside the current folder, use #include <private/baz_p.h> Also change #include <QtDeclarative/private/foo_p.h> to #include <private/foo_p.h> The header filenames already have a qdeclarative or qsg prefix; there's no need to prefix by module name to disambiguate. Finally, #include "private/foo_p.h" should be avoided. private/ is used for auto-generated (forwarding) headers, which never reside in the current (source) directory. Use angle brackets instead. Change-Id: I04f8477fdba043546064ee276475c09dc373f8f2 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
* Debugger: Remove outdated test stubKai Koehne2011-10-175-207/+0
| | | | | | | This stub is testing the QScriptEngineAgent interface, which is deprecated. Change-Id: I192a7b9aed0fa49f413bd6048e874414dab8256b Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Debugger: Move debugging autotests into own folderKai Koehne2011-10-1716-11/+18
| | | | | | | | This mirrors the source tree structure and makes it easier to run them all in one go. Change-Id: Ia191790eaec2c409857c41aff479d2ebd144aaf8 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Fix GridView to repaint when geometry changesBea Lam2011-10-175-0/+115
| | | | | | Task-number: QTBUG-22078 Change-Id: Ic0ad67832dad9a7b3a7e5501893befe2d30b6c94 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Remove insignificant flag from tests, some failing test cleanup.Toby Tomkins2011-10-176-10/+2
| | | | | | | Task-number: QTBUG-21054 QTBUG-21004 Change-Id: I9d1a3ca99363949eee952e1bd09aabef82fc1831 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Add Affector BenchmarkAlan Alpert2011-10-175-1/+331
| | | | | | | Just for generic affector. Change-Id: I62acf524eb2c6491bc88fd687a0065866d7ceaaa Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Stabilize Particles TestsAlan Alpert2011-10-1722-30/+109
| | | | | | | | | | A couple of targeted fixes, plus enabling QUnifiedTimer::consistentTiming. Task-number: QTBUG-21867 Change-Id: I62acf524eb2c6491bc88fd687a0065866d7ce8aa Reviewed-by: Martin Jones <martin.jones@nokia.com>
* 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>