aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Allow conversion of QObject Module API to QVariantChris Adams2011-09-022-0/+86
| | | | | | | | | | | | This commit adds a conversion codepath for QV8TypeResource to QVariant where the resource contains a QObject module API. This allows such a module API to be used as the "target" in a Connections element. Task-number: QTBUG-20937 Change-Id: I9214b531968f2e6981a86e643859a97297c6a02a Reviewed-on: http://codereview.qt.nokia.com/3286 Reviewed-by: Chris Adams <christopher.adams@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Allow reference to signals using 'on' handler syntax.Michael Brasser2011-09-012-0/+91
| | | | | | | | | | | | | This will allow APIs like the following: trigger: mouseArea.onClicked However, signal handlers will not be callable from QML: mouseArea.onClicked() //throws exception Change-Id: I2ef5cb4e1f3ed4814ef590962391e1b14e3f0c43 Reviewed-on: http://codereview.qt.nokia.com/3683 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Batch view changes instead of applying them immediatelyBea Lam2011-09-012-46/+579
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If there are multiple changes to be applied to a view before the next repaint, collate them using QDeclarativeChangeSet and apply the changes as a group on the next layout(). (Note that changes to the current index are applied in sequence as changes are received, since changing it out of order produces different results.) Previously, any itemsInserted(), itemsRemoved() and itemsMoved() changes were immediately applied and items were repositioned immediately. In this situation if the same indexes changed multiple times between repaints, this could lead to redundant changes and bugs arising from multiple changes to the same items. Functions that will execute differently depending on whether pending view changes have been applied (e.g. count(), currentIndex(), highlight()) now call applyPendingChanges() before proceeding to ensure they are executed on a view that is up to date. Also, itemsMoved() operations that moved item/s backwards will now properly move backwards instead of being adjusted to a forward movement (which was implemented recently with e2b5681b1adab83555c7307b05f508d796a1152b) since backwards movements can be implemented more easily with the batched changes which translates moves into insert/remove actions. Change-Id: If9b39755898e8d2ed7e4bc61288206d5f1d653fd Reviewed-on: http://codereview.qt.nokia.com/3697 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Debugger: Rename qdeclarativedebug* to qdeclarativeenginedebug*Kai Koehne2011-08-313-5/+1
| | | | | | | Change-Id: I0c289bdf555aa317dc12c5dbcff0168ebcc7bd50 Reviewed-on: http://codereview.qt.nokia.com/3935 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Rename QDeclarativeEngineDebugServer to ~ServiceKai Koehne2011-08-313-3/+0
| | | | | | | | | And fix the file names/location, too Change-Id: If2d5ec0896332896ad11af748ec8f75c39e1555c Reviewed-on: http://codereview.qt.nokia.com/3890 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Autotests: Silence gdb warning about deprecated conversionKai Koehne2011-08-313-3/+6
| | | | | | | | | Fix "warning: deprecated conversion from string constant to ‘char*" Change-Id: Ie8a4b0caba351e5920cc7d3249ee023bfe7675bc Reviewed-on: http://codereview.qt.nokia.com/3934 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Allow initial property values to be defined with QSGLoaderChris Adams2011-08-3122-0/+631
| | | | | | | | | | | | | | | | | | | This commit adds an "active" property to QSGLoader, which can be used to delay instantiation of the item until the user wishes to activate the loader. The property is true by default in order to maintain compatibility with previous behaviour. The commit also adds a "setSource(v8object)" function to QSGLoader, which behaves identically to setSource() property mutator except that it takes a JavaScript object parameter which defines the initial property values of the item (in a manner similar to that of QDeclarativeComponent::createObject()). Task-number: QTBUG-17009 Change-Id: Ifd824b518b60ef7aa3017c384835abb552e65cf1 Reviewed-on: http://codereview.qt.nokia.com/3364 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Support QT_TRID_NOOP in ListElement.Michael Brasser2011-08-311-0/+10
| | | | | | | | Task-number: QTBUG-21070 Change-Id: I91f68467ed96c89fe18726372348ebe809099f60 Reviewed-on: http://codereview.qt.nokia.com/3906 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Add enums support to QObject module APIsChris Adams2011-08-313-0/+22
| | | | | | | | | | | | | This commit adds support for retrieving enum values from QObject module APIs. Task-number: QTBUG-21033 Task-number: QTBUG-21056 Change-Id: Ib2bd107f3f5905e2d2d35f8a20c55045ef9bb322 Reviewed-on: http://codereview.qt.nokia.com/3291 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Do not deliver hover events when item is not visibleCaio Marcelo de Oliveira Filho2011-08-311-0/+64
| | | | | | | | | | | | This patch change the code to also skip invisible items (it was done for disabled already) when deciding whether or not deliver the hover events to an item. The rationale here is to follow the same rule as the other mouse events. Change-Id: If0fe6d64d1f7cfb8679ce11edda7c02dc3783f9b Reviewed-on: http://codereview.qt.nokia.com/3861 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Fix extra hover enter events being sent by QSGCanvasCaio Marcelo de Oliveira Filho2011-08-311-0/+84
| | | | | | | | | | | | This fixes two issues: when one item is entered it is getting the enter event twice. When we are moving from two items that share the same parent, the parent is getting enter event -- which shouldn't happen. Change-Id: If0fe6d64d1f7cfb8679ce11edda7c02dc3783f9a Reviewed-on: http://codereview.qt.nokia.com/3860 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Fix the directory cache for case insensitive file systems.Roberto Raggi2011-08-301-1/+2
| | | | | | | | | Authored-by: Martin Jones Change-Id: Iebedfa077487f4fa1cab6d159cc4bd1e7b0b7184 Reviewed-on: http://codereview.qt.nokia.com/3870 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Fix the tst_qdeclarativedebug auto test.Roberto Raggi2011-08-301-3/+3
| | | | | | | | | The creation order in QML is not defined. Change-Id: I4bc3d9e56e32a0c907cdaef9994ae66c3869a4ea Reviewed-on: http://codereview.qt.nokia.com/3800 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Move all QML file parsing into the QDeclarativeScript namespaceAaron Kennedy2011-08-301-2/+2
| | | | | | Change-Id: I5969686a796cbfb2eeb3729014df7f01e51b0620 Reviewed-on: http://codereview.qt.nokia.com/3797 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Update the tst_qdeclarativelanguage::errors() auto test.Roberto Raggi2011-08-303-5/+4
| | | | | | | Change-Id: I953eecefbf177c7d415b64814cea5ca2611787c3 Reviewed-on: http://codereview.qt.nokia.com/3794 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Removed QDeclarativeJS::NodePoolRoberto Raggi2011-08-301-1/+1
| | | | | | | Change-Id: I69d39ef005900803f6c620ea8f1ca00d054dc8d2 Reviewed-on: http://codereview.qt.nokia.com/3757 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* QDeclarative::hasActiveFocus should return false for hidden itemsAlan Alpert2011-08-301-0/+13
| | | | | | | | | | Forward-port of a1b2be3c8a64aee832c648c6dcdff003f22318a3 from 4.8 Task-number: QTBUG-21045 Change-Id: I055e4dd18e43ccce92d0cae96b10809adb4dcc3a Reviewed-on: http://codereview.qt.nokia.com/3857 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Implement script module api property get and setChris Adams2011-08-3011-50/+193
| | | | | | | | | | | | | | This commit adds code for property get and set for script module APIs, and also splits up the module API unit tests into QObject and Script (QJSValue) parts. Related to commit: 3ee8a19f5b7142b96e2df649ea0dac444b5622a2 Task-number: QMLNG-33 Task-number: QTBUG-17318 Change-Id: I4aaf5d1cc1d4774dd0f0999f0985439e4d76f0ca Reviewed-on: http://codereview.qt.nokia.com/1472 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Position in updatePolish instead of using single shot timerAlan Alpert2011-08-302-28/+25
| | | | | | | | | | | | Related to QTBUG-18919, but that was not reproduceable. Rewrites a fair bit of the autotest to no longer rely on repositionings happening immediately. Change-Id: I80683d6e03a5543fc838cdd55b2d53e49a8a68bd Reviewed-on: http://codereview.qt.nokia.com/3690 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Fix conversion of QAbstractItemModel::rowsMoved() parametersBea Lam2011-08-301-3/+76
| | | | | | | | | | | | VisualDataModel was emitting itemsMoved() signal with incorrect "to" value when multiple items were moved forwards. (change cherry picked from b64817858484db6e7c280d41ed81d4c87dff2275) Change-Id: I684eb1716d2ad6e0f702e95d9c0cd5c6fe2c9cbb Reviewed-on: http://codereview.qt.nokia.com/3694 Reviewed-by: Bea Lam <bea.lam@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Compile fix for QML object creation benchmark.Michael Brasser2011-08-302-5/+7
| | | | | | Change-Id: I0a2948728796e72651c86f84f0a296b63e22044f Reviewed-on: http://codereview.qt.nokia.com/3825 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Remove V8 submodule from QtDeclarativeKent Hansen2011-08-2959-488/+52
| | | | | | | | | | | | | | | | | | | | | | | QtDeclarative should now link against the QtV8 library from qtbase. The patch files have been moved to qtbase as well. Applications that use the QtDeclarative private headers may need to add the following to their .pro file: QT += v8-private This ensures that <private/v8.h> is found, which is (indirectly) included by many QtDeclarative private headers. Task-number: QTBUG-20963 Change-Id: I31e973a6fcc0c416d3b258a61c26564cee3dcd4b Reviewed-on: http://codereview.qt.nokia.com/3093 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Re-add QDeclarativeFontLoader autotest.Michael Brasser2011-08-295-0/+248
| | | | | | | | Was accidently removed in the qtquick1 work. Change-Id: I511efa65e85858e22909257a95f635d5c06cb0a5 Reviewed-on: http://codereview.qt.nokia.com/3685 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Deprecate QDeclarativeDebugHelper classKai Koehne2011-08-2610-206/+6
| | | | | | | | | | This was a helper class for enable debugging in 4.7. Since Qt 4.8 you should just say CONFIG += declarative_debug Change-Id: I51dabaec36e175a097721570061aad38c3f828d1 Reviewed-on: http://codereview.qt.nokia.com/3507 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Don't enumerate Function.prototype.{connect,disconnect}Kent Hansen2011-08-261-0/+19
| | | | | | | | | | | | | | | QML/JS adds connect and disconnect methods to the standard Function.prototype object. Follow the convention of ECMA-262: Function properties should be non-enumerable. In particular, we don't want such built-in properties to show up in user code "for-in" statements. Task-number: QTBUG-21120 Change-Id: I416106badf35daddf32e16f757d37b2b09e58310 Reviewed-on: http://codereview.qt.nokia.com/3587 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
* qsgflickable test is unstableMartin Jones2011-08-251-1/+2
| | | | | | | | | | | Ensure that the flickable animation finishes before flicking in the other axis is initiated. Task-number: QTBUG-21096 Change-Id: I97bdbc539d9b5af999c0c3d186c35a75a029194d Reviewed-on: http://codereview.qt.nokia.com/3553 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix leak in tst_qsgitem::wheelEvent() autotestCaio Marcelo de Oliveira Filho2011-08-251-0/+2
| | | | | | | Change-Id: If0fe6d64d1f7cfb8679ce11edda7c02dc3783f95 Reviewed-on: http://codereview.qt.nokia.com/3539 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Fix tst_qjsvalue::castToPointer test failureKent Hansen2011-08-241-4/+0
| | | | | | | | | | | | | In order for casting the variant's data() to work, we need to get at the actual QVariant wrapped in the JS object; copying the variant caused a stale pointer to be returned. Task-number: QTBUG-21000 Change-Id: I1a32a70d5a043c94dbbd07ef2c8048e7df7fc7bf Reviewed-on: http://codereview.qt.nokia.com/3309 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
* reenable tst_examplesAlan Alpert2011-08-241-1/+0
| | | | | | | | | | A potential culprit has been disabled pending investigation, testing may proceed as normal. Change-Id: I471d768e033b1e3fea1714983056ca4631baabd8 Reviewed-on: http://codereview.qt.nokia.com/3444 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Do not deliver mouse wheel events when item is not visibleCaio Marcelo de Oliveira Filho2011-08-241-1/+48
| | | | | | | | | | | | | | This patch change the code to also skip invisible items (it was done for disabled already) when deciding whether or not deliver the wheel event to an item. The rationale here is to follow the same rule as the other mouse events. An autotest was added to verify and maintain this behavior. Change-Id: If0fe6d64d1f7cfb8679ce11edda7c02dc3783f94 Reviewed-on: http://codereview.qt.nokia.com/3429 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* test: marked tst_examples as insignificant_test on x11Rohan McGovern2011-08-241-0/+1
| | | | | | | | | | This test sometimes segfaults. Task-number: QTBUG-21078 Change-Id: I3636063457fd78099fd471a1175bc2151ae178cc Reviewed-on: http://codereview.qt.nokia.com/3426 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* test: marked expected failure in tst_qsgtextinputRohan McGovern2011-08-231-0/+4
| | | | | | | | | | | Part of this test was already marked as an expected failure. Now it fails in a different place. Task-number: QTBUG-21011 Change-Id: I15ce8be882b361fda8351900eb768acec01a7bac Reviewed-on: http://codereview.qt.nokia.com/3343 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
* test: marked tst_qsgfocusscope as insignificantRohan McGovern2011-08-231-0/+2
| | | | | | | | | | This autotest is unstable. Task-number: QTBUG-21054 Change-Id: Ifeea19a842ccca9b086117345c889b8d6d0cc295 Reviewed-on: http://codereview.qt.nokia.com/3342 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
* test: marked tst_qdeclarativebehaviors as expected failureRohan McGovern2011-08-231-0/+3
| | | | | | | | | | | | This was supposed to be marked in e5166af2e4856668ea45d31e0d6fb044dc9ab1af, but was accidentally omitted (note that there are two autotests named tst_qdeclarativebehaviors). Task-number: QTBUG-21001 Change-Id: I0afeccff776a448e24d76f51cd9b761774067311 Reviewed-on: http://codereview.qt.nokia.com/3288 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
* tests: acknowledge all known failures in declarative autotestsRohan McGovern2011-08-2216-0/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This change XFAILs or CONFIG+=insignificant_tests all known failures in declarative autotests, and links them to bug reports. Note that the changes were only applied to qpa builds, although it is possible some of these failures affect other platforms too. Task-number: QTBUG-20990 Task-number: QTBUG-21000 Task-number: QTBUG-21001 Task-number: QTBUG-21004 Task-number: QTBUG-21005 Task-number: QTBUG-21007 Task-number: QTBUG-21008 Task-number: QTBUG-21009 Task-number: QTBUG-21010 Task-number: QTBUG-21011 Task-number: QTBUG-21012 Task-number: QTBUG-21013 Task-number: QTBUG-21015 Task-number: QTBUG-21016 Task-number: QTBUG-21017 Change-Id: Ieb89aa38e48e9e5162d87483d6441749865f234d Reviewed-on: http://codereview.qt.nokia.com/3239 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Keith Isdale <keith.isdale@nokia.com>
* Make QSGTextNode back-end for QML's TextInput and TextEditEskil Abrahamsen Blomfeldt2011-08-194-15/+185
| | | | | | | | | | | | | | | | Use the general QSGTextNode class as back-end for all text elements in QML to make all text elements look the same and use the same text rasterization back-end. This requires a few rewrites in the text node to support e.g. selections. Crashes seen with threaded renderer in TextEdit and TextInput on Mac are also fixed by this. Reviewed-by: Jiang Jiang Task-number: QTBUG-18019, QTBUG-20017 Change-Id: I4207faf180c83422e5f8b726741321af395bd724 Reviewed-on: http://codereview.qt.nokia.com/2865 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
* Fix unit test failureChris Adams2011-08-191-1/+1
| | | | | | | | | | | | | Previously had hardcoded tostring comparison value for QFont, but on some platforms the default styleHint may be different. This commit ensures that the comparison value is generated properly rather than hardcoded. Task-number: QTBUG-21003 Change-Id: I49229863b10bf5fb96248b9334b66d7b1ef46676 Reviewed-on: http://codereview.qt.nokia.com/3237 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Fix tst_qdeclarativestates autotest.Michael Brasser2011-08-193-8/+10
| | | | | | | | | | Update test after changes to Column. Task-number: QTBUG-21002 Change-Id: I12671207cd07ba375f9c90cc02fdc9f81f189678 Reviewed-on: http://codereview.qt.nokia.com/3236 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Don't skip autotest and export needed symbolGunnar Sletta2011-08-191-2/+0
| | | | | | | Change-Id: Ib5090348cefa955caa54c5e4fff8cb961ddb8e52 Reviewed-on: http://codereview.qt.nokia.com/3147 Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Add support for a vector4d type in QMLChris Adams2011-08-187-0/+63
| | | | | | | | | | | | | QVector4D is a value-type which is supported but was not able to be constructed using a Qt object function. This commit allows properties of vector4d type to be constructed, and adds a function to the global Qt object and adds unit tests to ensure that it behaves correctly. Task-number: QTBUG-18559 Change-Id: I96509a4f496b644d20fdb1d977d0afe430d89e13 Reviewed-on: http://codereview.qt.nokia.com/1626 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Make QColor a value typeChris Adams2011-08-185-0/+132
| | | | | | | | | | | | | | This commit allows direct access to the r, g, b and a components of a color (in floating point format: 0 <= v <= 1). Since conversion from color to string is a common operation, this commit also adds unit tests to ensure that the previous behaviour is maintained in other cases (comparison with toString value, etc). Task-number: QTBUG-14731 Change-Id: I87b521dd4f9c1e96dfe5b20cf8053293cb14cfe4 Reviewed-on: http://codereview.qt.nokia.com/2527 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Add attached properties to the positioners.Glenn Watson2011-08-187-0/+369
| | | | | | | | | | | | | | | | Added an attached property type to the base positioner class. This allows items within a positioner (Row, Column, Grid, Flow) to determine their index inside the positioner, as well as whether they are the first or last items. Non-visible items are ignored, as in the positioner layout objects themselves. It may be useful to expand this in the future to contain more information specific to the positioner, for example row/column for Grid. Task-number: QTBUG-19211 Change-Id: I10a8c9ca5528dd12811125cae8a9b4d2e3747972 Reviewed-on: http://codereview.qt.nokia.com/2983 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Allow borderimage .sci source to be a quoted filenameChris Adams2011-08-174-0/+18
| | | | | | | | | | | | | Previously, attempting to set the source property of a border image via a .sci file to a quoted filename would fail. This commit adds support for quoted source filenames. Task-number: QTBUG-20709 Change-Id: Ida54ef42bc07081457fd945bb279f3cc82c26e10 Reviewed-on: http://codereview.qt.nokia.com/2724 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Damian Jansen <damian.jansen@nokia.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Migrate part of QtScript benchmarks to QtDeclarativeJedrzej Nowacki2011-08-108-1/+2087
| | | | | | | | | Benchmarks for QJSValue QJSEngine and for QJSValueIterator were added. Change-Id: Ie52a3e8f5a461add3269d41d6e9a1a9bfb0c7abd Reviewed-on: http://codereview.qt.nokia.com/2705 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Simon Hausmann <simon.hausmann@nokia.com>
* Add support for individual row and column spacing to Grid object.Glenn Watson2011-08-102-0/+77
| | | | | | | | | | | | | Add rowSpacing and columnSpacing properties to QML Grid object. If these are specified, use them when laying out the grid. If they are not specified, default to using the spacing property that was previously used, so it is backwards compatible. Task-number: QTBUG-11876 Change-Id: I5c809e89fe124d8d5ea1667b273f19e2c37ff18a Reviewed-on: http://codereview.qt.nokia.com/2797 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Copy the docs for QtQuick 1Alan Alpert2011-08-092-1/+8
| | | | | | Change-Id: Iaaaaaaa13726fa471f94fc7f809911164df24544 Reviewed-on: http://codereview.qt.nokia.com/2755 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Revise QDeclarativeChangeSet.Andrew den Exter2011-08-081-418/+589
| | | | | | | | | | Represent moves as associated Removes and Inserts instead of discrete actions. Add API for applying a set of changes to another change set. Change-Id: Id97c1648c7480023dbfef325150bb81c2fea95c0 Reviewed-on: http://codereview.qt.nokia.com/2720 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Fix broken test (view did not have focus set)Bea Lam2011-08-081-0/+1
| | | | | | | Change-Id: I25e68df061510deadd946d1a034c114dfd0b4f1c Reviewed-on: http://codereview.qt.nokia.com/2715 Reviewed-by: Bea Lam <bea.lam@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* Show header/footer if current index is set to first/last item or rowBea Lam2011-08-054-0/+70
| | | | | | | | Task-number: QTBUG-17853 Change-Id: I1d679cee31d6ee2a4bb2f2bf90f73eb12898189b Reviewed-on: http://codereview.qt.nokia.com/2664 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add missing license headers.Jason McDonald2011-08-052-0/+82
| | | | | | | Change-Id: Ib71e988f6a0d87f1f9afe407e206eaa68137a537 Reviewed-on: http://codereview.qt.nokia.com/2604 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>