aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Extract Particles code to an independent libraryMatthew Vogt2012-04-1672-14/+126
| | | | | | | | | QtQuick clients that do not use particles features should not have to load these classes. Task-number: QTBUG-25178 Change-Id: Ib15f7655dc4d821595e06f9160d2770375279027 Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
* Don't use QWindow::visible() since it's deprecatedGirish Ramakrishnan2012-04-131-5/+5
| | | | | | | | Use QWindow::isVisible() instead. Change-Id: I7dcd70e69a070d66f97f300cc292c1bfc51cf09c Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Debugger: Fix bug in Inspect ToolSimjees Abraham2012-04-135-47/+72
| | | | | | | | | | | | Changes made such that the reparenting of SelectionHighlight and HoverHighlight is not done. Now the overlay remains the parent for both. Reparenting of SelectionHighlight and HoverHighlight created issues when selection was done on QML lists. Even the highlight items were getting added into the lists. This fixes the issue. Change-Id: I116780408d62d2b3da0a17a92e11d6c4f63dd3dc Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Fix broken wakeup() in threaded renderloop.Gunnar Sletta2012-04-131-1/+1
| | | | | | | | | | | | It is cruicial that the sync handshake between GUI and render does not get interrupted. If it does, the sync will happen with the GUI unlocked which leads to crashes. When the sync event comes through to the GUI afterwards the GUI will block waiting while the renderer is most likely already done with the sync, causing GUI to wait indefinitely. Change-Id: I00bf0c36088510609a9e6f4d0649b9aaeefcd241 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Don't ignore model changes when the ListView scroll position changes.Andrew den Exter2012-04-134-5/+18
| | | | | | | | | If there are pending changes when the ListView viewport changes then do a full layout instead of a refill. Likewise for GridView and when animations finish or the cacheBuffer size changes. Change-Id: I57a2b01fee5729381558af366dad24ba26c223ef Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Export all symbols on QSGDefaultRenderer.Hannu Lyytinen2012-04-131-1/+1
| | | | | | | Allow custom scene graph renderers to be based on QSGDefaultRenderer. Change-Id: I67ec20b03abae34d0b0324f2e2bd8063322c14b7 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Make device specific projection matrix setter virtual.Hannu Lyytinen2012-04-131-1/+1
| | | | | | | | | | | Allow custom scene graph renderers to set the device specific projection matrix in their own way. This is needed for the KMS QPA platform, where the Y coordinate of the screen gets inverted (see discussion at http://lists.freedesktop.org/archives/wayland-devel/2012-March/ 002506.html). Change-Id: I08f3cd4b829e5b583fe96a9dfd67aa8d23a11b6b Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* QQuickTextEdit to trigger input method updates on selectAll()Pekka Vuorela2012-04-122-7/+8
| | | | | | Change-Id: I8642eca0e584b811308b73817e7decf2f392f1b5 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com> Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Doc: Fixing the Qt QML module page.Jerome Pasion2012-04-121-1/+1
| | | | | Change-Id: I0efffbab650423a78de437459c9060594f895f37 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Silence warning with ICC about change of signal in integer conversionThiago Macieira2012-04-122-3/+3
| | | | | Change-Id: I7a9bc7de580dd37005d842d0ff5a000ba16f7c20 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Add missing #include <stdlib.h>Thiago Macieira2012-04-122-0/+2
| | | | | | | | rand, malloc and free are defined in that header. Always include your headers. Change-Id: Iac052646617e0d038bc4a04709f32384d5f2e9e8 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Debugger: Fix bugs in inspection toolSimjees Abraham2012-04-123-13/+47
| | | | | | | | | Incorrect display of hover and selection highlight for child items having rotation and a different transform origin corrected. Change-Id: Id25c5bf52b5c1abc3f98ac6bc90d89262cc4f2cd Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Debugger: Inspect tool - changes made to highlight on selectionSimjees Abraham2012-04-111-0/+8
| | | | | | | | Changes made for the display of highlight on selection such that the highlight is more prominent. Change-Id: Iaf06bd04095be7b25881681e3f81c0fbf87df205 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Simplify date conversion functionsMatthew Vogt2012-04-116-1124/+11
| | | | | | | | | | | | | | | | | | | Do not use the 3rd-party code from JSC, but instead use the QDateTime functions for millisecond offsets from the epoch. Note that this change is reviving the earlier change: http://codereview.qt-project.org/1874. The test failures for that change no longer occur due to a change in the QDateTime behavior applied by: http://codereview.qt-project.org/13169 There is still a semantic difference between QDateTime and the ECMAScript specification with regards to the application of DST. ECMAScript requires that the current DST adjustment should be applied to historical dates, whereas QDateTime will apply the adjustment as applicable at the epoch date to any prior dates. Change-Id: Ibebd47c9d2b75a034342ffcda075501a6a527b8d Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Create accessible interfaces only for items with attached propFrederik Gladhorn2012-04-103-5/+11
| | | | | | | | | | | | | | If the attached property is not found, ignore the item, unless it is part of the tree. We still create a valid hierarchy this way, but filter out all irrelevant items. The same goes for hit-testing. On the other hand this patch enables the root item to be found by setting isAccessible on it when updating the flags. Otherwise the hierarchy is not valid again. Change-Id: Ied422fd0506d13458757c87a5dad7cdb9d3079bf Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* QQmlDebugServer: Use Q_D(const )Aurindam Jana2012-04-101-2/+2
| | | | | Change-Id: I118a7b9de886c712027c55c38be99f615aea6902 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* QmlDebug: Enable/Disable toolAurindam Jana2012-04-104-12/+29
| | | | | | Change-Id: Icb200474f1edff62d2fdd4bad9389117966775d5 Reviewed-by: Simjees Abraham <simjees.abraham@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QmlDebug: Remove Color ToolAurindam Jana2012-04-105-34/+1
| | | | | Change-Id: I3d54d24c2873648c9530ee8e7a33c95275e369e0 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QmlDebug: Highlight select itemsAurindam Jana2012-04-101-2/+2
| | | | | | | Enable higlight of selected items only in Design Mode. Change-Id: I06e97df51bf8632560932dda776e748df90bc163 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QmlDebug: Inspect ToolAurindam Jana2012-04-103-9/+98
| | | | | | | | | Select item on single click/tap and cycle through elements in the view stack on double click/tap. Change-Id: I36cdcbf3a8800a715eda6c916f4f206bac16e399 Reviewed-by: Simjees Abraham <simjees.abraham@nokia.com> Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QmlDebug: Combine Selection and Zoom ToolsAurindam Jana2012-04-1011-286/+121
| | | | | | | Combine the Selection and Zoom Tools into Inspect Tool. Change-Id: I2477e2b27f5dde5d74489ecf3c43a049e2ed3aa3 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QmlDebug: Selection Tool HighlightAurindam Jana2012-04-101-2/+2
| | | | | | | | Show a light color overlay when hovering and a darker overlay on selection. Change-Id: I57c04840558a7345b7d5b0b8406c6e6dec72fde4 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Use relative position to when getting line from layout.Andrew den Exter2012-04-101-1/+1
| | | | | | | | | textPos is the absolute position in the document, when querying an individual layout use the position relative to the start of the layout. Change-Id: Ic1d97fcc498051c99291357dba3303b3141ed502 Reviewed-by: Yann Bodson <yann.bodson@nokia.com> Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
* Fix compilation on LinuxAnselmo L. S. Melo2012-04-091-1/+1
| | | | | | | | Fix build error of QtDeclarative master (8b0831f0b0) on Linux with g++ 4.7.0. Change-Id: I5aaa6e95c8ebd360a7fbf3bb3c85c699e6594ac7 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Fix erroneous signal emission in LoaderChris Adams2012-04-051-1/+9
| | | | | | | | | | | Previously, the incubator wasn't cleared when a Loader was deactivated. This commit clears it on deactivate, and also ensures that the loadedSignal isn't emitted on error. Finally, it re-enables a network-loading-related unit test. Change-Id: I5dac92aead2c221c5d45011accf59077f7c9b402 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* MultiPointTouchArea documentation not to use deprecated signalsPekka Vuorela2012-04-051-1/+1
| | | | | Change-Id: I9ba8b9f3dc35a3eec833f2f3cce6c94ebddd7ae0 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Properly copy all event parameters in deliverMouseEvent()Laszlo Agocs2012-04-051-2/+6
| | | | | | | | | | | Timestamp and capabilities were missing. One of the very special flick test cases needs to be fixed, because setting the proper timestamp will now generate correct velocities. A potentially dangerous, legacy implementation of flick() has also been updated to match how QTestLib works in Qt 5. Change-Id: Ibc99f7212ba21d41a419eaadac2fdda730658dc6 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Rewrite QAnimationGroupJob::clear() methodCharles Yin2012-04-051-5/+11
| | | | | | | | Before removing and deleting children, set the m_group to 0 to avoid potential cycling deletions when this method is called from QAnimationGroupJob::~QAnimationGroupJob(). Change-Id: Idb6920be71fc9e033e5a76b724c9550018995035 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Create plugins for Particles and Window submodulesMatthew Vogt2012-04-0512-22/+178
| | | | | | | | | | | | | | | To prevent errors when QML files import QtQuick.Particles or QtQuick.Window before importing QtQuick itself, create plugins for these submodules that make their import statements independent of the QtQuick import. Remove the automatic re-ordering of the imports list prior to loading to ensure registered name conflicts can be resolved by changing the order of import statements. Task-number: QTBUG-24369 Change-Id: I248625fa30a813dddd2a64feb9a489768931939f Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix some issues with init_data() for qmltestCharles Yin2012-04-051-5/+8
| | | | | | | | | 1. should not use hasOwnProperty, replace it with 'in' 2. the default init_data() method is unnessary 3. when init_data() returns empty, the test function should run in non data driven mode Change-Id: I8cb19d3499b285d07c8b3d04abd9ddf33b1c5395 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Fix access to uninitialised memory that might lead to crashesThiago Macieira2012-04-041-0/+5
| | | | | | | | | | | | | QMetaObject is POD, so its constructor is implicit and trivial (doesn't initialise anything). QAbstractDynamicMetaObject doesn't add a constructor, so the QMetaObject sub-object remains uninitialised. The users of either class must ensure they initialise the members if they will be accessed. Change-Id: Ibb7f55ff23b78afb1fcb87382b30c8a28804c028 Task: QTBUG-23214 Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com> Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove sharing of V4 subscriptionsRoberto Raggi2012-04-042-15/+22
| | | | | | | | | Unfortunately, sharing subscriptions doesn't play nice with the linked lists we maintain to observe QML bindings. Change-Id: I8ab351987138caf8fa7fbdeff4dbf2b34184a05c Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Inline the methods of the V4 Register classRoberto Raggi2012-04-041-40/+40
| | | | | Change-Id: Id4b5bfe2f5d3ec24dd1c4bc5f3d375c4f92345bd Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Remove obsolete codeRoberto Raggi2012-04-046-54/+2
| | | | | Change-Id: I5812990703c4339018af4327cd7b44199a1705fd Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Do not execute overwritten bindingsAaron Kennedy2012-04-041-1/+13
| | | | | | | | | During the construction of an object, internal bindings can be overwritten by the initialization of objects with outer scope. Task-number: QTBUG-23138 Change-Id: I46a187d9cdc41f4dd96d068f39788a2255b8888d Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Revert "Do not execute overwritten bindings"Aaron Kennedy2012-04-041-39/+9
| | | | | | | | | | | | | This reverts commit 639208cc7f3ab3d8356363559e8fcf168e32cf0b. There were two problems with this submit: 1. Maintaining a hash of all the properties we have assigned bindings to is massively inefficient. 2. The autotest was in the qquickbinding testcase which is for the QtQuick "Binding" element, not for generic binding tests. Change-Id: Id2150dbfe86c6844cc0b115d7f941ae8d6a60643 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Flickable should only call ungrabMouse() if it is the mouse grabberAndras Becsi2012-04-041-1/+2
| | | | | | | | | Check whether the Flickable is the mouse grabber before ungrabbing in mouseReleaseEvent() to suppress warnings in case event delivery does not rely on mouse grabbing. Change-Id: I3c3398ebbb9d8ab2cb6181677752b73e265cf02f Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Do not crash on invalid binding diagnosticMatthew Vogt2012-04-041-2/+3
| | | | | | | | | If there is no meta object for the property type of the recipient of an invalid binding, fall back to QMetaType::typename(). Task-number: QTBUG-25161 Change-Id: I0bb768cbc166c04f62d20d8bb19e6ae883d7dc2f Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Do not execute overwritten bindingsMatthew Vogt2012-04-041-9/+39
| | | | | | | | | | | | | | During the construction of an object, internal bindings can be overwritten by the initialization of objects with outer scope. To yield the expected result, suppress the evaluation of inner bindings that are overwritten by outer bindings, during the completion phase of object creation. Task-number: QTBUG-23138 Change-Id: I679309543a9b64c774bb99798ad5ccf518726d10 Reviewed-by: Chris Adams <christopher.adams@nokia.com> Reviewed-by: J-P Nurmi <j-p.nurmi@nokia.com>
* Support snapMode in PathViewMartin Jones2012-04-043-46/+113
| | | | | | | | PathView missed out on snapMode, which is especially useful for its SnapOneItem mode. Change-Id: I0e9b080ef72d9bc1e305445cd8dfde8e21e4e3da Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Use wasDeleted function to check for deletionMatthew Vogt2012-04-041-8/+1
| | | | | | | | | Ensure that the check for deletion logic is consolidated in a single location. Task-number: QTBUG-25159 Change-Id: I27e856159afc745d68ec23cf3c872d740db8bcf3 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Use the GCC pragma on GCC onlyThiago Macieira2012-04-041-1/+1
| | | | | Change-Id: I4a0680bddb4d4a73362406ddcd30569ee664d0cc Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Silence warning about non-standard comma at the end of enumThiago Macieira2012-04-041-1/+1
| | | | | Change-Id: Iea14d05d3ce209d83ddf01a01ff94e17c6f11d86 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Remove workaround for QTBUG-22919.Andrew den Exter2012-04-041-3/+0
| | | | | | | Fixed in qtbase. Change-Id: I2faff485d3aaf5639b211bd0a1b30bf9d37d2e69 Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
* Fixed crash when using 'var' property in ShaderEffect.Kim Motoyoshi Kalland2012-04-047-875/+854
| | | | | | | | Also made CustomParticle and ShaderEffect share some code. Task-number: QTBUG-23924 Change-Id: I975f71f031b379cf5e29302a9c931e4ead5437ea Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Restore the declarative_debug config for qmltestCharles Yin2012-04-041-2/+2
| | | | | | | There are some applications need this feature. Change-Id: I036dd68177b70d334efa4989254b9166d9e41fcc Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Update for API changes in the QPlatformSharedGraphicsCacheEskil Abrahamsen Blomfeldt2012-04-032-18/+18
| | | | | Change-Id: I6648d16a11343e2342b832c7416e72ce43ab175d Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
* Don't crash if calling a method on a QObject that has been gc()'dAaron Kennedy2012-04-032-5/+27
| | | | | | | | | | As we don't actually delete an object immediately when it is collected, it is possible to get into a situation where a method is called on an object after the collector has marked it to be destroyed. This fixes a crash in this case. Change-Id: I131d4c5d7ed788a91aa52f6af2e5c089d9bf5e08 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Fix QML_BINDINGS_TEST and the V4 auto testsRoberto Raggi2012-04-032-4/+23
| | | | | | | Also, enable all the V4 auto tests. Change-Id: I014a95298e6a834784a4a573ad3310e59e932ec4 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Add Throw instruction to the V4 virtual machineRoberto Raggi2012-04-037-2/+49
| | | | | | | | Also, throw an exception when trying to assign something that is not a QUrl or a QString to a QUrl. Change-Id: Ic48fd519c8318d391706ebca1955a5dd2ef6e80e Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>