aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Added --verify-only option to qmlmin.Roberto Raggi2011-09-191-11/+17
| | | | | | | | | | | | | | | | | qmlmin has three different stages. In the first stage it generates the QML/JS minified code. In the second stage we verify that minified code is equivalent to the original code and in the final stage we produce the output. With --verify-only you can tell qmlmin to quit after the verification step. Note that this option is pretty much equivalent to the unix command qmlmin file.qml -o /dev/null. Change-Id: I91373bc1c1db8c35af2e301ad13d7b34fc384529 Reviewed-on: http://codereview.qt-project.org/4670 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Introduced qmlmin.Roberto Raggi2011-09-193-1/+529
| | | | | | | | | | qmlmin is a simple minifier for QML and Javascript files. It removes comments and layout characters. Change-Id: I387a683cd9b73e8fd225e10a75b3fcec50949938 Reviewed-on: http://codereview.qt-project.org/4442 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Fix the implementation of Lexer::tokenText().Roberto Raggi2011-09-192-7/+11
| | | | | | | | | | Lexer::tokenText() should return the contents of the string literal without the quotes. Change-Id: I968ca2e5142d8c55c75990c24380d2faa9b313a3 Reviewed-on: http://codereview.qt-project.org/4440 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Introduced a QML scanning mode.Roberto Raggi2011-09-193-32/+35
| | | | | | | | | | In QML mode, the lexer will recognize the extra QML keywords, e.g. readonly, as, on, and so on. Change-Id: I148ff857e201f99d41e0265bcfc480a94a1085a0 Reviewed-on: http://codereview.qt-project.org/4518 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Re-enable QtQuickTest.Rohan McGovern2011-09-193-6/+3
| | | | | | | | | | This was disabled in refactor, but it seems to be working OK, so turn it back on. Change-Id: I35d97342c6ef7be358d9cb593a1eab27c711247c Reviewed-on: http://codereview.qt-project.org/4846 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Get rid of QDeclarativeUtilsKent Hansen2011-09-196-127/+31
| | | | | | | | | | | All the QChar methods needed by QtDeclarative have now been optimized to achieve at least as good performance as the QDeclarativeUtils versions. Change-Id: I5b8dd58f9b597f716b53563d07d39d894c5dd666 Reviewed-on: http://codereview.qt-project.org/5059 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Fix QDeclarativeListProperty assignmentChris Adams2011-09-193-1/+46
| | | | | | | | | | | | | This commit ensures that a QDeclarativeListReference can be assigned to another QDeclarativeListProperty, by retrieving each element in the list reference and converting to the appropriate type before appending to the target list property. Task-number: QTBUG-16316 Change-Id: Id8858058f052a53bf43eadc085fd278654478d77 Reviewed-on: http://codereview.qt-project.org/4388 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Make cellWidth/cellHeight reals rather than ints.Michael Brasser2011-09-194-25/+56
| | | | | | | | | | When they were ints, it was relatively easy to end up with a different row or column count than expected, because of rounding. Change-Id: Ifc5eba2b5598cbc0220df25f91f031581c3b51a5 Reviewed-on: http://codereview.qt-project.org/5112 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Bea Lam <bea.lam@nokia.com>
* QtQuick 2.0 elements system testDamian Jansen2011-09-1949-0/+4096
| | | | | | | | | | | Added an application to browse elements. A very basic acceptance test method that each can be performed in under a minute. Added the .qtt for formal usage. Also moved qsgimage system test. Change-Id: Iada9804e2efe1339a072935647962e54aa3b4c6f Reviewed-on: http://codereview.qt-project.org/4380 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* PathAnimation updates.Michael Brasser2011-09-199-62/+351
| | | | | | | | | | Allow smooth orientation changes, smooth interruptions, and implicit "from" in PathAnimation. Change-Id: I2191f6df89ec25d78b1d498827281803a07129c9 Reviewed-on: http://codereview.qt-project.org/4378 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Test fixes and reenables.Michael Brasser2011-09-183-40/+28
| | | | | | | Change-Id: I85e3493855b6fefb682ddb120b15abd003fb00fd Reviewed-on: http://codereview.qt-project.org/5045 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* JSDebugging: Enable break on events.Aurindam Jana2011-09-173-12/+100
| | | | | | | | | | | | The user can request Javascript break on event. The user can provide this info in the Breakpoints Window and provide the slot which will be called when the event occurs. For example: specify "onTriggered" if you need to break on Timer triggerred event. Change-Id: I09f869a5301a9c1f92a8b8c0f3df7f74b1027b4b Reviewed-on: http://codereview.qt-project.org/4751 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Re-enable commented tests.Jędrzej Nowacki2011-09-164-7/+7
| | | | | | | | | | The tests used QWidget class so widgets library have to be added to pro file. QDeclarativestates works fine. Change-Id: I55c0798a37c3a894b774ba71671569fe007a49d7 Reviewed-on: http://codereview.qt-project.org/5104 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Matthew Cattell <matthew.cattell@nokia.com>
* Re-enable commented QJS tests.Jędrzej Nowacki2011-09-162-3/+3
| | | | | | | | | | The tests used QWidget class so widgets library have to be added to pro file. QJSValue test already had it. Change-Id: Ib93b2e9b84dea76f5121378c13cc0e1921a4ebd9 Reviewed-on: http://codereview.qt-project.org/5101 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Matthew Cattell <matthew.cattell@nokia.com>
* Remove QmlChanges.txt fileAaron Kennedy2011-09-161-364/+0
| | | | | | | | | | Somehow I don't think changes prior to Qt 4.7.0 RC are that interesting anymore. Change-Id: I42d8bbb5de8ab04796b9f6f313fbb93d0a9c7794 Reviewed-on: http://codereview.qt-project.org/5055 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Get rid of autotests dependencies on QtWidgetsKent Hansen2011-09-165-10/+10
| | | | | | | Change-Id: I19936b7f8173eff9fc0bc3e19b0a61830dc5a440 Reviewed-on: http://codereview.qt-project.org/5097 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Fix an assertion in QDeclarativeNotifierEndpointLars Knoll2011-09-161-1/+1
| | | | | | | | | | | The code in toNotifier() tried to convert to a Notifier, and called asNotifier() before setting the type correctly. Change-Id: I2d4c41c6bf43422587111ae4e0c57a3905f159e0 Reviewed-on: http://codereview.qt-project.org/5089 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Initialize variableLars Knoll2011-09-161-1/+1
| | | | | | | Change-Id: I2aa261ed85136df33f678a9279f7f9c833c925cd Reviewed-on: http://codereview.qt-project.org/5088 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Disable autotests temporarily on MacKent Hansen2011-09-161-0/+2
| | | | | | | Change-Id: Ib34fdbdce2b088e0f79034342ab1fc9c94ea10f9 Reviewed-on: http://codereview.qt-project.org/5080 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Add Age exampleAlan Alpert2011-09-163-5/+143
| | | | | | | | | | Also added advancePosition property to Age, as it was needed for even this simple example. Change-Id: I614a719280efc1bc5140d07ab91ec0f1bc345788 Reviewed-on: http://codereview.qt-project.org/4871 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix aliasing bug when compiled with gcc 4.6Aaron Kennedy2011-09-161-9/+16
| | | | | | | | Change-Id: I50dbeaed501ae498cd5c46e6e5929789b373b932 Task-number: QTBUG-21265 Reviewed-on: http://codereview.qt-project.org/4957 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Reference V4 program dataAaron Kennedy2011-09-163-5/+11
| | | | | | | Change-Id: I84d520da16def8e48ac8bbfaab654450f776abc8 Task-number: QTBUG-21265 Reviewed-on: http://codereview.qt-project.org/4956 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Fill out examples a little moreAlan Alpert2011-09-162-0/+205
| | | | | | | | | | Adds an example of colorized ImageParticle, and an example comparing the particle system to dynamically created Images (which don't do too badly when they're kept really simple). Change-Id: Id9e8d0575a38ddde1c73d694bd5c062d56cbed42 Reviewed-on: http://codereview.qt-project.org/5047 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Particles examples shuffleAlan Alpert2011-09-16151-903/+1124
| | | | | | | | Recast as examples, not demos. Fewer licking face usages. Change-Id: I02a03fb9af513cbc3dc2a94aa0843220f162593b Reviewed-on: http://codereview.qt-project.org/4754 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Hotfix docsAlan Alpert2011-09-161-0/+12
| | | | | | | | | | | While QtQuick 1 and 2 aren't clearly separated yet, some of the more drastic differences (like the separate particle systems) need to be explained a little in the interim. Or at least visible. Change-Id: I60321bcb90a34730ed3e0862a049540ea36f8c5b Reviewed-on: http://codereview.qt-project.org/5044 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* rename threadRendering to renderInThreadCharles Yin2011-09-1613-45/+49
| | | | | | Change-Id: I21d2492288adc84d3ef99633752e78a3ea232a4a Reviewed-on: http://codereview.qt-project.org/5042 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Fix qsgpositioners autotestAlan Alpert2011-09-161-8/+19
| | | | | | | | | | | A waitForWindowShown now takes long enough of the animations to make progress, which had been confusing the initial state checks. Task-number: QTBUG-21414 Change-Id: I3e01f804d6bca7f627012da6cc69b0baabaabaaa Reviewed-on: http://codereview.qt-project.org/5041 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* update canvas item documentationsCharles Yin2011-09-1628-126/+569
| | | | | | Change-Id: I66cc6550a7d8eb054c70b6f17fee05976e0a32c6 Reviewed-on: http://codereview.qt-project.org/5040 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* fix context2d composition bug, lighter should map to qt ligten composite modeCharles Yin2011-09-161-3/+3
| | | | | | | Change-Id: Iacc9cb4bd9196869b9947f919b7748ab5ad9610f Reviewed-on: http://codereview.qt-project.org/5039 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* fix broken canvas blur after merging refactor branchCharles Yin2011-09-164-139/+84
| | | | | | | Change-Id: If145f1d02566f839abeb50df167db2b237499290 Reviewed-on: http://codereview.qt-project.org/4857 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Fix warnings.Michael Brasser2011-09-165-13/+11
| | | | | | | Change-Id: I7f066550fa2e1799f1c44b787da84c882f549b03 Reviewed-on: http://codereview.qt-project.org/5036 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Add exception for qpa, xcb platform for failing testToby Tomkins2011-09-161-0/+3
| | | | | | | | | | Task-number: QTBUG-21416 Change-Id: I69986ea120d908d20a4ef73bf137ca0906dc4351 Reviewed-on: http://codereview.qt-project.org/4729 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Update system offset every frameAlan Alpert2011-09-162-19/+8
| | | | | | | | | May be expensive if large systems animate painters, but seems safer than messing with the tranformation matrix. Change-Id: Ie5b21e9f238b5305bef44c48027a3337c70b2aaa Reviewed-on: http://codereview.qt-project.org/4933 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Friction and Gravity examplesAlan Alpert2011-09-162-0/+208
| | | | | | | Change-Id: Ie816f1209711aae3b9cd1465f874919370c26028 Reviewed-on: http://codereview.qt-project.org/4875 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Documentation AugmentationAlan Alpert2011-09-162-5/+9
| | | | | | | Change-Id: I662526a9c0f9c8694ec39aa0d5ad9286d1c9f208 Reviewed-on: http://codereview.qt-project.org/4863 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Update Turbulence on noiseSource changeAlan Alpert2011-09-161-1/+2
| | | | | | | Change-Id: Ib730bcad0a345df8e4cd45aa5b8ab892d3de16f7 Reviewed-on: http://codereview.qt-project.org/4860 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove invalid ASSERTAlan Alpert2011-09-161-4/+5
| | | | | | | | | | | There is a possibility for it to have been updated already if newDatums are requested before emittersChanged is reached. This became possible when emitters stopped having strict particle emission limits. Change-Id: I45d1564f56547418127446e3138ff21deec891c3 Reviewed-on: http://codereview.qt-project.org/4753 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix missing/outdated license headers.Jason McDonald2011-09-1616-70/+552
| | | | | | Change-Id: Ib5f244a61cb65db829ee83ec9e4d5e4189319a9f Reviewed-on: http://codereview.qt-project.org/4936 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Velocities reported by Flickable in onFlickStarted can be 0Martin Jones2011-09-166-20/+141
| | | | | | | | | | | | | | | Change 55cfbdb7c64068ae68f7baaceb8acfb96cb0c07e manually applied from Qt 4.7 Ensure the smoothed velocity is set at the start of the flick. Ensure that the smoothed velocity animation isn't restarted unless there is new valid data. Change-Id: Ia77249be9980aba268a1bfa0ea3f69c49fa09e5e Reviewed-by: Bea Lam Reviewed-on: http://codereview.qt-project.org/4712 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* When we create textureprovider, initialize it with the texture if we got itGunnar Sletta2011-09-151-5/+5
| | | | | | | Change-Id: Ia3ab1a75db947a67c610e664051f73bf84b079c1 Reviewed-on: http://codereview.qt-project.org/5008 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
* Support preedit text in QSGTextInputEskil Abrahamsen Blomfeldt2011-09-152-55/+74
| | | | | | | | | | | | | | We need to support merged additional formats with backgrounds in the QSGTextInput as well, so that code has been separated into its own function. We also need to account for the position in the bounding rect, so that the decorations are painted at the correct location when there text input is scrolled. Task-number: QTBUG-21261 Change-Id: I0799a62bf26e6a7a2c1a6eef9bbdf889c1c8e870 Reviewed-on: http://codereview.qt-project.org/4964 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
* Use QWindow's surface format for QSGCanvas' GL contextGunnar Sletta2011-09-151-0/+1
| | | | | | | Change-Id: Ibca3b126405e2c7a0deaad55151c1bd2b284cf93 Reviewed-on: http://codereview.qt-project.org/4972 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Fix pre-edit text in in QSGTextEditEskil Abrahamsen Blomfeldt2011-09-152-89/+178
| | | | | | | | | | | | We need to include the preedit text when getting the glyphs for the fragment, and we need to support background formats. Note: This assumes that the pre-edit text will not span several fragments, which seems like a reasonable assumption. Task-number: QTBUG-21261 Change-Id: I7dd28f1221f931893ba1c51cc9e8b9771b2e46c3 Reviewed-on: http://codereview.qt-project.org/4906 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
* Separate declarative builtin functions from QV8Engine classJędrzej Nowacki2011-09-155-985/+1115
| | | | | | | | | | | | Function like md5(), darker(), createQmlObject()... should not belong to QV8Engine class This is an attempt to balance size of source files. Change-Id: If36405ad5359e11e992bb4f17764be6c18e94a6a Reviewed-on: http://codereview.qt-project.org/4351 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Remove some unused includes.Jędrzej Nowacki2011-09-158-11/+1
| | | | | | | Change-Id: I5090b0d3c88f3c972b1f1d2a56a954138f8d02ca Reviewed-on: http://codereview.qt-project.org/4283 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
* Fix QJSValue autotest.Jędrzej Nowacki2011-09-151-1/+1
| | | | | | | | | The test depends on widgets library. Change-Id: I22cd3cbf9b3a2e3ed8d5c28cd8d5e44b6e33c4f1 Reviewed-on: http://codereview.qt-project.org/4792 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Split qjsconverter_p header.Jędrzej Nowacki2011-09-155-191/+282
| | | | | | | Change-Id: I7495cfe5932cdd226e6e8c550fff421e3705184a Reviewed-on: http://codereview.qt-project.org/4411 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Remove dead code.Jędrzej Nowacki2011-09-151-15/+0
| | | | | | | | | | Last time when I checked using ExternalStringResources was slower then normal strings. Probably in future we may reevaluate this idea. Change-Id: I9e8d971be146a29256d4e01e4fae6e50cfe42c80 Reviewed-on: http://codereview.qt-project.org/4245 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Fix potential memory corruption.Jędrzej Nowacki2011-09-151-1/+17
| | | | | | | | | | | | | The code exploited information that most of types in union use d pointers and that size of d pointer is less or equals then sizeof(QVariant) or sizeof(double). Still the code may suffer from an alignment issue on some exotic platforms. Change-Id: I4ef331f4cdb7177337ddcc8696f78d85e9594d27 Reviewed-on: http://codereview.qt-project.org/4244 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Cleanup includes in QDeclarativeData.Jędrzej Nowacki2011-09-151-1/+1
| | | | | | | | | QJSValue is not used in QDeclarativeData class, but QHash is. Change-Id: Iae5cd7ed39ade04cb16afb4521978d527e97d878 Reviewed-on: http://codereview.qt-project.org/4242 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>