aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused codepaths from QV8SequenceWrapperChris Adams2011-11-112-36/+1
| | | | | | | | | | | | The object equality comparison callback does not allow an object with a sequence resource to be equal to an object with a variant resource. As such, the SequenceType::isEqual(QVariant) codepaths are not needed. Also, QVariantList conversion is handled by toBasicVariant() in the QV8Engine, and thus we don't need conversion code for this type in the sequence wrapper. Change-Id: I2ec599c5ad6cfdb715cd4e0aae3f0cc3bb36cfdf Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Export QSGDynamicTextureCharles Yin2011-11-111-1/+1
| | | | | | | | The QSGDynamicTexture is in the public header and documented, it should be exported like QSGTexture as well. Change-Id: I7c1811509b0311b177d3b9c9bdb893d1383c6d59 Reviewed-by: Juha Vuolle <juha.vuolle@nokia.com>
* GridView should re-layout if add/remove before visible indexBea Lam2011-11-113-8/+20
| | | | | | | | | | Unlike ListView, GridView must redo its layout if an item is added or removed from before the visible items, since it affects the column/row layout. Task-number: QTBUG-21588 Change-Id: Id333bc653033751c45d127973e94fae4580c55b0 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Make compile and pass CI tests.Michael Brasser2011-11-112-0/+3
| | | | | Change-Id: Ie2ec20d9e346ccaf698762d6abf0224c39fb3490 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* PathView element's current item changes on insertion.Martin Jones2011-11-101-5/+18
| | | | | | | | | When inserting an item before the current item update the offset to ensure the current item doesn't change. Task-number: QTBUG-21320 Change-Id: I2375bc5098e7f83c33e7a0b123ed1b82f607055f Reviewed-by: Bea Lam <bea.lam@nokia.com>
* QStringLiteral does not build on arm gcc 4.5.2 in this conditionJohannes Zellner2011-11-101-1/+1
| | | | | | | | Replace QStringLiteral with QLatin1String Change-Id: I205bcd4f446e225c3f4054798e74dd0cb356e126 Reviewed-by: Robert Griebl <robert.griebl@nokia.com> Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
* Improvements to listmodel implementation and tests.Glenn Watson2011-11-094-71/+80
| | | | | | | | | | | - Fixed edge case crash bug with QObjects being set on existing listmodel element. - Improved warning messages when assigning wrong type to role. - Removed a few code paths that can never be hit. - Added several tests to cover functionality not hit by coverage. Change-Id: I3d237c0555afbba6377b4d898bec911515b1b4ea Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Delete nodes in the render thread at shutdownAaron Kennedy2011-11-092-0/+33
| | | | | | | This fixes a crash on OS X and possibly other platforms. Change-Id: Ie8fc451b526d12d46133ef560c04e88c0b142b9a Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
* Fix v4 crash when accessing invalid attached propertyAaron Kennedy2011-11-091-1/+2
| | | | | | Task-number: QTBUG-21883 Change-Id: Ic14a5d494890fc1bc322c660b97f657d640f2ff8 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Return a string from resolvedUrl() to match 4.x behaviorAaron Kennedy2011-11-091-3/+3
| | | | | | Task-number: QTBUG-20960 Change-Id: I9ae99ada5c9bbe7498df24908c6acd202ca73a15 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Ensure connection lists get cleanedAaron Kennedy2011-11-091-0/+2
| | | | | | Task-number: QTBUG-21368 Change-Id: I2cdecc984edb76a5fb1417cfdb29ffe6b90b0993 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Fix qmltestrunner crash bug when report filename and line numberCharles Yin2011-11-092-22/+2
| | | | | | | | | | The HandleScpe is not needed here. Also for each test file, the rootObj should reset its internal states properly, otherwise the following test cases are polluted by the previous tests. Task-number:QTBUG-22620 Change-Id: I1e4869070b8712e5a6c755461d52bd12d1f03160 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fix gcc compilation warningsKai Koehne2011-11-094-6/+4
| | | | | | | | QML_SHOW_FRAMERATE is a leftover from QDeclarativeView. Rest is signed vs unsigned integer comparison. Change-Id: Ie17e217fc1cf13d29a3795a40dbbc07e9c7c6067 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix expected failure in TextEdit hAlign_RightToLeft test.Andrew den Exter2011-11-091-1/+9
| | | | | | | | | Send events to the input item instead of the canvas. And apply the fix from 4.8 for the tested condition which somehow wasn't applied when the test itself was. Change-Id: I0f5bfe8fc13fc426b395fa8ef87cb5549789a92e Reviewed-by: Martin Jones <martin.jones@nokia.com>
* QDeclarativePixmapCache: Add missing enumeration values and break.Friedemann Kleint2011-11-091-1/+7
| | | | | Change-Id: Ia83a4932d50133aaae5d488d7be0df99a75be576 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Behavior on a value type should not cancel previous assignment.Michael Brasser2011-11-091-4/+2
| | | | | | | | | | | The call to read the value type value causes the previously assigned value to be overridden. This commit fixes the issue, but doesn't solve the root cause, which would require changes at the compiler/vme level. Task-number: QTBUG-20827 Change-Id: I1a53ee7b777bea81c5929ab7e47e2932e6901967 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* tst_QSGGridView enforceRange_rightToLeft failsMartin Jones2011-11-091-5/+2
| | | | | | | | | | | Change 9bd6361400a2a4e4045a090de73d70082cc6d1bf corrected the highlight range for right to left layout, i.e. positioned relative to the right. This change fixes the autotest to account for this and fixes flicking in StrictlyEnforceRange mode with RTL layout. Task-number: QTBUG-22162 Change-Id: I133b7e647883e51783bcf54111871451a3a7e67f Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Add tests for the VisualDataGroup onChanged signal.Andrew den Exter2011-11-091-4/+7
| | | | | | | | | And other things. Fixes onChanged being emitted with an empty change list, an out of bounds array access in groups property and model parts group filter not being correctly reset. Change-Id: If2f27b303a141634d106b7c5164984e5817aff4e Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add console.time / console.timeEnd APIKai Koehne2011-11-094-0/+54
| | | | | | | | | Implement console.time() / console.timeEnd() as also provided by FireBug / Safari. Task-number: QTBUG-22347 Change-Id: I94fcadbb0c54fdf60dc2559e3ae63d613e29630b Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Extend VisualDataModel tests to cover Package delegates.Andrew den Exter2011-11-091-2/+4
| | | | | | | | | | Verify the existing tests also pass if a package delegate is used. Fixes incorrect changes being emitted when the group a part model is filtered on changes and package items not being un-parented when destroyed. Change-Id: Ib4be42274b0a0460ae9b763a9737f4a6d3b94603 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix crash on exit when overriding signal handlers in states.Michael Brasser2011-11-092-4/+6
| | | | | | | | Cherry-picked from 93c64e1be3a2d68eb504d7c4f7c60f66ce1ff650 in 4.7. Task-number: QTBUG-21617 Change-Id: I99ce8292d53954f5229867a384f47bedf7fad315 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Property changes in Component.onCompleted should trigger Behaviors.Michael Brasser2011-11-091-12/+12
| | | | | | Task-number: QTBUG-22555 Change-Id: Ieffb8037d7289113ea4f629ba3b578a845d2cb28 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* VisualDataModel group change notification missing initialization.Martin Jones2011-11-082-1/+10
| | | | | | | Found by valgrind. Ensure m_previousIndex is initialized. Change-Id: Ie3f56d0428d22a7ff1dc54dd53bfdaef21ad169f Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Declarative: Add define _CRT_SECURE_NO_WARNINGS for MSVC.Friedemann Kleint2011-11-082-0/+3
| | | | | | | | | Silence warnings about usage of strcmp(), etc. Using wrapper is not an option here for performance reasons. Change-Id: Ia444a637080c910b8a9a888f422e65c812ba546c Reviewed-by: Chris Adams <christopher.adams@nokia.com> Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
* Don't crash on invalid expressionAaron Kennedy2011-11-081-0/+1
| | | | | | Task-number: QTBUG-21310 Change-Id: I93de1c520b6f1c2aa3842e1091bcf2b34d9b0420 Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Include correct line number when throwing an exception from a slotAaron Kennedy2011-11-081-1/+2
| | | | | | Task-number: QTBUG-20344 Change-Id: I25be1520b55ce13d4e1c75e06effa1dee8530a7a Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Fix default glyph node after qtbase refactorJiang Jiang2011-11-081-1/+1
| | | | | Change-Id: Ib08c1bcf33bafcee828169b3ddfa264bd010cfef Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Don't create geometries for transparent Rectangle {} elementsGunnar Sletta2011-11-071-1/+2
| | | | | Change-Id: If59f7ad7f85849559707cecacc9e2d917e68ab26 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Declarative: Fix compiler warnings.Friedemann Kleint2011-11-073-6/+6
| | | | | | | | - Unused parameters, variables - Usage of deprecated QAtomic::operator=(int) Change-Id: I2861968dac8ef8a3126783e3447c593808116871 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Minor improvements to some of the node implementations.Kim Motoyoshi Kalland2011-11-073-20/+12
| | | | | Change-Id: I05c7c4810b37d8f808e812eac7b2128d21de36c8 Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
* Emit signal when texture is updated in ShaderEffectSource.Kim Motoyoshi Kalland2011-11-072-16/+15
| | | | | | | | | | | Added a signal scheduledUpdateCompleted() which is emitted after the texture content has been updated as a result of a call to scheduleUpdate(). Also renamed the textureChanged() signal to updateRequested(), which I think is a more accurate name. Task-number: QTBUG-22174 Change-Id: If4d29e3be3a953494562d1ff55045f2154491d97 Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
* QV8DebugService: Return JSON messages for internal requests.Aurindam Jana2011-11-071-0/+56
| | | | | | | | | Internal requests are not handles by V8. Hence, create a JSON message similar to v8 debugging protocol and send it to client. This is only for uniformity wrt to debug requests. Change-Id: Ia0a3cda0ef157b852fb4402fde62b4651a95bd56 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Documentation fixesDamian Jansen2011-11-0714-24/+24
| | | | | | Change-Id: If30f98aafcedc5119e305dcb48b610a459780344 Reviewed-by: Thorbjørn Lund Martsum Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
* Optimization: Minimize refreshing when root context changesAaron Kennedy2011-11-043-23/+37
| | | | | | | | | | | | Modifying a context requires expressions to be refreshed incase they depend on a name resolution that changes. As it is common to modify the root context, and the root context can't hide any names, it is easy to constrain the expressions that require refreshing. In a well behaving app, this should mean that no expressions are reevaluated when the root context is modified. Change-Id: Id3b48cd595fdd6b5a3dc6f26319f652dccaef79c Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* QV8DebugService: Cancel DebugBreak Requests before disconnectAurindam Jana2011-11-041-0/+3
| | | | | Change-Id: Iaf00123e0c9aa2e5542e9c8863df3887092ac953 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Don't crash if contexts are deleted during refreshExpressionsAaron Kennedy2011-11-049-72/+196
| | | | | Change-Id: I23b59d33c07b017ef7355a7fe4a728d84c5d7eaa Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Skip the captured properties step in bindingsAaron Kennedy2011-11-0411-131/+399
| | | | | | | | | | Objects and notifiers in the capturedProperties list were not guarded which can lead to crashes if they're deleted prior to the binding completing. Now the notifiers are connected to and guarded immediately to prevent this. Change-Id: I912e323c52bf6169fb5077e552d5d38d9aa7faec Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Fix crash in object serialization due to sequencesChris Adams2011-11-041-15/+17
| | | | | | | | | | Commit c177691118e4e2bace9b5c1f4f57343190e6ad64 added support for sequences, but in doing so, introduced a crash bug into worker thread object serialisation. This commit fixes the bug by ensuring that the object resource type is checked prior to serialisation. Change-Id: I4ef9e4d0865a337c4fe6e8f1cd40cf4462ca7a60 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix invalid remove cache indexes caused by consecutive ranges.Andrew den Exter2011-11-041-8/+36
| | | | | | | | | | | | listItemsRemoved attempts to merge and consecutive cache only ranges it produces, this same logic would also merge other consecutive ranges incorrectly incrementing the cacheIndex in the process. Since listItemsRemoved won't produce these consecutive ranges itself handle only the cache only ranges there and compress the other consecutive ranges where they originate. Change-Id: If4d95fb741c8e7003ed48bfb2559c30c948c255b Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix module API provider registration function documentationChris Adams2011-11-042-117/+1
| | | | | | | | | | Previously, the documentation was not able to be linked correctly by qdoc3. This commit moves the documentation to the correct file and ensures that the links work correctly. It also fixes a typo in the QQuickLoader documentation. Change-Id: Id675954dd3009fafe6e0cfeb81342c947302ffcb Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Text.RichText ignores color propertyYann Bodson2011-11-042-2/+4
| | | | | | Task-number: QTBUG-21921 Change-Id: I2adb9062e658742a704dc55b4def7f6f1eb1f954 Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
* QmlProfiler: Send trace start event when starting profilingChristiaan Janssen2011-11-032-7/+12
| | | | | Change-Id: Ic81c99922f73b0bf9ee830adc2fe35f1c154d868 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* V8Profiler: fix block at start when profiling is disabledChristiaan Janssen2011-11-031-1/+1
| | | | | | | | | The constructor would block the execution of the whole thread until profiling was enabled. This fix lets the user launch an application with profiling disabled. Change-Id: Ia57c19ce9200f7cc21ae2105db954cc2cb0df271 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Only issue non-threaded renderer warning onceAaron Kennedy2011-11-031-3/+7
| | | | | Change-Id: Id278fa28080d829763c907423089897728b01baa Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Profiler: Fix profiling when disabled on startupKai Koehne2011-11-031-1/+2
| | | | | | | | Don't try to call addEvent(EndTrace) if we've just received the inital message telling us whether to profiler or not. Change-Id: I78e7437fce46bc1eabfa0c3095ffe11f396c403e Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Debugger: Remove unused filesKai Koehne2011-11-033-135/+0
| | | | | Change-Id: Ib7b9f37226525d2c42729a4ea7fa8f0fd7a4e4c4 Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
* Cursory docs for QQuickCanvas and QQuickViewAlan Alpert2011-11-032-3/+163
| | | | | Change-Id: I6955164715b07fc11a00466b5a5a1818d97fb9b5 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix GravityAlan Alpert2011-11-032-40/+45
| | | | | | | | Now simulates acceleration instead of setting it, and properties are renamed to be consistent with AngleDirection Change-Id: I648aa9122c49b46aa7b7d7796bc25d5bd56bfffe Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Only simulate if particle was aliveAlan Alpert2011-11-023-2/+12
| | | | | | | | | | When spliting the simulation into multiple parts, do not simulate for times before the particle was born. Otherwise huge simulation times lead to huge effects even on particles with a simulated birth of near the end of that time. Change-Id: I7ff507b27bf819dbebd61934b9523b23316b5e80 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Debugger: Remove widgets dependency for qtquick2 inspectorKai Koehne2011-11-022-53/+1
| | | | | Change-Id: I596a49375afc1e148fec1aabe0a7d47a81e7442a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>