aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Vertical layout direction for ListView and GridViewBea Lam2012-04-1726-1050/+2345
| | | | | | | | Provide verticalLayoutDirection property with TopToBottom and BottomToTop values. Change-Id: If6f0da5dd4735036162868d391852a661854de5b Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Compile fix for qqmldebugservice testGirish Ramakrishnan2012-04-171-0/+1
| | | | | Change-Id: I8efd3686521c3221be79f5bbf5e28a8ef2bb4e19 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Fine-tune animation's pause()/resume() behaviorsCharles Yin2012-04-172-6/+43
| | | | | | | | Only allow pause/resume to be used while running, and when stop the animation reset the paused value to false. Change-Id: Ia465045006478936146356f9e2e0632614c6b527 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Fix Text baselineOffset caclulations.Andrew den Exter2012-04-173-20/+295
| | | | | | | | | | Update the baselineOffset when short cutting layout due to an empty text property. And allow alterations to the baseline due to images, font scaling and custom layouts when doing a layout. Task-number: QTBUG-24303 Change-Id: I5a31a6108cded490fef8b0674e15558ea4e22d6b Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Don't use QWindow::visibleGirish Ramakrishnan2012-04-161-5/+5
| | | | | | | | The deprecated method (in favor of QWindow::isVisible) is going away. Change-Id: I1ead05f8d74800a29c315ca4ca74577e89314882 Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Debugger: Code cleanup for Inspect ToolSimjees Abraham2012-04-162-23/+16
| | | | | | | | Code cleanup done for Inspect Tool. Member variables removed which were not required. Change-Id: I74ab43c4e8bf39d00a5428bb6219653b7887c46d Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* QPointer used instead of QWeakPointerSimjees Abraham2012-04-164-17/+16
| | | | | | | | Correctly used QPointer instead of QWeakPointer in QuickViewInspector and Highlight classes. Change-Id: I579bd148e71803b029d7a036cdcb7255740dbd91 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
* Fix exports for the new Particles library.Friedemann Kleint2012-04-163-3/+3
| | | | | Change-Id: I3163c2bd00ad0d047f7fe2daa783e12071dd95b4 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* QmlDebug: Fix qmake warning about declarative_debugKai Koehne2012-04-161-2/+2
| | | | | | | | | declarative_debug has been deprecated, and replaced by qml_debug. In this case we can anyway use the define directly to avoid the warning on startup. Change-Id: Ia5ce1ecf698d2232ff46533822372f42db0825bd Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Be more explicit regarding the Locale object creation.Martin Jones2012-04-161-2/+2
| | | | | Change-Id: I6096c5919415b51b44f6e502da48b07f6de4d623 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Add a new running property to QQuickTransitionCharles Yin2012-04-165-38/+82
| | | | | | | | | | | This read only property can be used to track the transition running state. As all animation items inside a Transition item are just animation defination templetes, so their running properties won't be updated during the transition animations running, which makes it hard to know the current running state of a transition animation. Change-Id: If7fc0616ba384abc6bf2da67c7c639430c3d8fb9 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Add bug numbers for insignificant tests.Jason McDonald2012-04-162-2/+2
| | | | | Change-Id: Ic68f722e27edab52d68742cc45efa69d86ad4f3b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Add support for variant properties in V4Matthew Vogt2012-04-169-4/+269
| | | | | | | | | | | Support initialization of variant properties in V4. Variants can be set to contain basic types in V4, but we can't extract data from them since they may contain data types that V4 does not comprehend. Task-number: QTBUG-25022 Change-Id: I1935d77b50c5a3481c4c8ddd86b9d3d970571217 Reviewed-by: Michael Brasser <michael.brasser@nokia.com> Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Extract Particles code to an independent libraryMatthew Vogt2012-04-1697-37/+169
| | | | | | | | | 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::moveGirish Ramakrishnan2012-04-131-1/+1
| | | | | | | It's deprecated. Use QWindow::setPos instead. Change-Id: I16694d27eb583d18c9dca3ee066dbfddab1efe69 Reviewed-by: Samuel Rødal <samuel.rodal@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>
* Extra tests for ShaderEffect and CustomParticleAlan Alpert2012-04-137-1/+285
| | | | | Change-Id: Ieafa97f1f11337c8beac89a05fc5b5706ba6c215 Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
* test: marked tst_qv8profilerservice as insignificant on macRohan McGovern2012-04-131-0/+2
| | | | | | | | | This autotest has repeatedly given different results on consecutive test runs. It seems to fail about 5% of the time in CI. Task-number: QTBUG-25288 Change-Id: If7e8675521f6270877f514b7de81c926606cf232 Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
* Don't ignore model changes when the ListView scroll position changes.Andrew den Exter2012-04-136-25/+92
| | | | | | | | | 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>
* Measure offsets by rows instead of pixelsBea Lam2012-04-131-163/+202
| | | | | | | Will make it easier to test multiple flows and layout directions. Change-Id: I33cabb650f65a2fd2932d23d501bf250d71ef80d Reviewed-by: Andrew den Exter <andrew.den-exter@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-123-7/+13
| | | | | | 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-122-7/+7
| | | | | Change-Id: I0efffbab650423a78de437459c9060594f895f37 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Begin documenting QML's JS environment.Michael Brasser2012-04-124-5/+104
| | | | | | | | Provide a basic overview of QML's JavaScript host environment that can be expanded as needed. Change-Id: I1f178a9de26bd3ea6f5707821518419f76ab279d 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>
* Get SpriteGoal and GroupGoal tests running againAlan Alpert2012-04-124-4/+6
| | | | | | | | | Missing from particles.pro, and needed quick-private removed from their pro files. Also updated to match new sprite API, presumably these were missed because they weren't running before. Change-Id: I9be2d7f2b0bacc32c26829d40e91e8907c184906 Reviewed-by: Chris Adams <christopher.adams@nokia.com>
* Move doc pages into subfoldersAlan Alpert2012-04-124-0/+0
| | | | | Change-Id: I611d0a4a069ac94a28ab2d264bcaa38347715909 Reviewed-by: Casper van Donderen <casper.vandonderen@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-118-1124/+25
| | | | | | | | | | | | | | | | | | | 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-104-10/+18
| | | | | | | | | | | | | | 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-055-7/+143
| | | | | | | | | | | 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-053-13/+16
| | | | | | | | | | | 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>
* Use the updated module api registration function in exampleChris Adams2012-04-052-1/+3
| | | | | | | | | Previously, the example used the non-templated registration function. This commit also links the qmlRegisterModuleApi documentation from the "Creating QML Types" page. Change-Id: I43afb5c051a52fef4059160972f7508f40dac523 Reviewed-by: Alan Alpert <alan.alpert@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-0517-34/+186
| | | | | | | | | | | | | | | 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>