aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* lower case QML components are accepted when used with 'as' importMatthew Vogt2012-01-1619-6/+66
| | | | | | | | | If an Object Binding is in a namespace, ensure that the Component name begins with a capital letter. Task-number:QTBUG-20786 Change-Id: Id4a0c0fdb0c9b9516bea597a4994bb7519339bc9 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Fix build break in qmlviewer.Xizhi Zhu (Steven)2012-01-141-0/+1
| | | | | | | It's introduced by commit 14b929e9c448f2cc74fa047aaf8af283b81fbaf9 in QtBase. Change-Id: Iacb5350b5f42a09b7419bf491ac9620a406422e6 Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com>
* Stabilized tst_qquickcanvasSamuel Rødal2012-01-131-33/+45
| | | | | | | | For some reason the mouseFiltering() and headless() cases fail if the touch test cases run first. Change-Id: I30839b09e9f7b287c88e6983424add5cf40a6d1a Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* QTouchEvent::TouchPoint::isPrimary() is gone.Samuel Rødal2012-01-131-1/+1
| | | | | Change-Id: I6fbaac28a060fd527e0226d55419a9055125368a Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Reintroduce plugin support for asynchronous hardware specific texturesGunnar Sletta2012-01-135-80/+110
| | | | | Change-Id: Iad36542d2137e7a6470009c308ece3de389907c1 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Add tests for item polish bug on MacBea Lam2012-01-135-8/+52
| | | | | | | | | | | | | On Mac OS X, if a QQuickItem triggers a polish request from Component.onCompleted, its updatePolish() function is not called. The tst_qquickitem::polishOnCompleted() test demonstrates this. If a running animation is added to the polishOnCompleted.qml in the test, the test will pass. Task-number: QTBUG-23481, QTBUG-23480, QTBUG-21590 Change-Id: I172b12e784aa458c43c23e0ee43f034f0bd332ee Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Don't delete global appCharles Yin2012-01-131-1/+4
| | | | | | | | Sometimes delete the global GUI app causes crash, this is a work around fix. Change-Id: Ic2406e7a085483de5d96321de8257663925b7e5e Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Use QGuiApplication, not QApplication, in testsDamian Jansen2012-01-1310-92/+92
| | | | | Change-Id: I7802293e6cafb90686c103972bc036cf74184714 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Disable an unstable test.Gunnar Sletta2012-01-121-0/+1
| | | | | Change-Id: I2f346ce26bfb23e148cb5b0ad73a934930a4fdf7 Reviewed-by: Matthew Cattell <matthew.cattell@nokia.com>
* Fix preedit text visibility when TextInput is emptyJiang Jiang2012-01-121-1/+1
| | | | | | | Task-number: QTBUG-22646 Change-Id: I5162ffdebdee6f956a9a79b2307a2ac53cc4890b Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
* initialize variableGunnar Sletta2012-01-121-0/+1
| | | | | Change-Id: I4841dce8e85df608fd0e38f661301797a3857176 Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* Remove out-of-line uses of qMalloc/qFree/qRealloc.Robin Burchell2012-01-1210-33/+33
| | | | | | | | | Per http://codereview.qt-project.org/#change,11562, we are trying to remove these in favour of direct allocation, or (in the case of inline code) specialised out-of-line wrappers. Change-Id: I113609c4f97dc5c8020a72cbd398572cdb5b7505 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Adapt to QInputPanel::inputDirection() APIPekka Vuorela2012-01-1215-31/+34
| | | | | | | Information moved from QGuiApplication into QInputPanel. Change-Id: Idd80609f4b67bffae7222a1fa27918724ebf60f6 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
* Accessibility: indexOfChild is 0-based.Frederik Gladhorn2012-01-124-6/+9
| | | | | | | Also test for it to work. Change-Id: I3be913984e2dddce241b538c7801f3376acdd1fa Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Remove unnecessary reimplementation of invokeMethod()Jan-Arve Saether2012-01-122-7/+0
| | | | | | | | invokeMethod() is not pure virtual, and the implementation inherited from the baseclass is the same Change-Id: I073ab3a0dc3477f66b82535c1898430f601acee8 Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
* Make QAccessibleQuickView::childAt() work properly with overlapping itemsJan-Arve Saether2012-01-127-45/+309
| | | | | | | | | | | | | | | | | | | | The previous code did not consider items that were overlapped due to having different z coordinates. The approach used is now the same as found in QQuickCanvas::mousePressEvent(). Strictly speaking, this is a violation of childAt (since it will disregard the implementation of childAt of all the descendants along the path down to the item actually returned.) However, I don't see any good reason for that the implementation for childAt() would be different than how mousePressEvent behaves. It should also perform better than any other solution I managed to think of. Change-Id: I2d3fa2282437c7b5533c6149c62fc456ccf2ccfa Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Fix validators not allowing backspace or delete.Andrew den Exter2012-01-123-4/+47
| | | | | | | | | | TextInput will allow non-valid changes to already invalid text, when a validator is changed update the current validity so changes can be made to bring the text back to a valid state. Task-number: QTBUG-22080 Change-Id: I501961b473f58c317bce474b1df8d91fd1f967d4 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Add undo and redo functions to TextInput and TextEdit.Andrew den Exter2012-01-129-47/+235
| | | | | | | | | The functionality already existed and was usable through keyboard short cuts but was not accessible through API. Task-number: QTBUG-16191 Change-Id: I080fa2ddb76668a7a632aa7477004f99037ea68b Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Remove QEXPECT_FAIL from TextEdit test.Andrew den Exter2012-01-121-2/+0
| | | | | | | | Test doesn't assert. Task-number: QTBUG-22058 Change-Id: I28ca74884ed9f42ff35789be82e99dbdf84055c3 Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
* Fix restarting timer from onTriggered handler.Andrew den Exter2012-01-122-1/+60
| | | | | | | | | | Set the running property to false before calling the triggered handler when a timer finishes so it does not appear to still be running and can be restarted by setting the running property to true. Task-number: QTBUG-22004 Change-Id: I840efa30f5b7ad7d0cda96803d4898be3f390705 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix failing tst_qquicktextinput::horizontalAlignment_RightToLeft test.Andrew den Exter2012-01-122-20/+27
| | | | | | | | | | How the text is laid out is dependent on the horizontalAlignment so that needs to be determined before updating the display text and doing the layout. Task-number: QTBUG-23485 Change-Id: I1872b1bfc60fd829a0d69c21a19cd3b2b4dc8340 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Add Two MultiPointTouchArea examplesAlan Alpert2012-01-1214-0/+539
| | | | | | | | Bear-whack and multi-flame. Still missing an example using a custom gesture and the signals. Change-Id: Ie75c57e34adab3a62f66eba586a1b2de51dbe100 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Fix QQuickAge testAlan Alpert2012-01-122-3/+1
| | | | | | | | | | | | With the consistent timing bug fixed (ages ago), test should be stable. A problem leading to failures in sustained has also been fixed (assumed that the particle group size would be approximately 500, but this is not necessarily true). Task-number: QTBUG-22088 Change-Id: Ifdb0f0e08266f9e44782c6b8fc8c56200c0a1d46 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Update text autotests.Michael Brasser2012-01-122-8/+0
| | | | | | | | QTBUG-18040 has been fixed for Qt 5, we no longer need to skip these tests on Mac. Change-Id: Ie1883a75b105ca321388b3c4483110306e2a387c Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Skip crashing test on Mac.Andrew den Exter2012-01-121-0/+3
| | | | | | Task-number: QTBUG-23010 Change-Id: I0e0513e50664421522c104163a28c3fa88b5c469 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Stabilize test.Michael Brasser2012-01-121-3/+0
| | | | | | | | | There appears to be an issue with showing before setting the source, if qWaitForWindowShown is not used. The show() is not required for this test, so remove it. Change-Id: I423a9572c8ee0dde9cbf9bc8fbf98aede97a79a7 Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
* Remove obsolete toBoolean() and isBoolean() QJSValue gettersSimon Hausmann2012-01-114-86/+58
| | | | | | | We should use "toBool" and "isBool" for consistency with QVariant. Change-Id: I266f2a36a034a5b323e614777ceacbc0d2ffec16 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
* QMLTest: Fix output of file names, make output more verbose.Friedemann Kleint2012-01-113-72/+107
| | | | | | | | | | | | | | | - Check command line arguments thoroughly. - Change all QuickTestResult functions taking file names to accept QUrls and format them using QUrl::toLocalFile() in case of local file names in order to display Windows drive letters correctly. - Introduce a template function (for QDeclarativeView, QQuickView) that dumps out all available information when compilation goes wrong. - Skip 'Debug', 'Release' folders for Windows builds. Change-Id: Ibdd92867870a2b05494de8a0adbe0910d4897ba2 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Improve Accessibility documentation.Frederik Gladhorn2012-01-101-1/+5
| | | | | Change-Id: I41a48a69c1de34b37bcb4a703f844647d8c61456 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Accessibility: Checked state for check boxes and radio buttons.Frederik Gladhorn2012-01-1010-67/+142
| | | | | | | Also adapt to new api in qtbase - state is now a bit field. Change-Id: Ia4266f3d5094a6c32e0ace3499910b57c3e71c25 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Remove the pin to qtbase and depend on the new qtjsbackend moduleSimon Hausmann2012-01-101-1/+2
| | | | | | | This module contains our V8 dependency. Change-Id: I72b0b64fe61fe10139725d24711ea24a8a035eb4 Reviewed-by: Xizhi Zhu <xizhi.zhu@nokia.com>
* Fix tst_qdeclarativestates::anchorsRewindBug failureGunnar Sletta2012-01-093-39/+35
| | | | | | | | | | | | | | | | | | | | maybeUpdate() has an optimization to void locking the Gui thread on every QQuickItem::update() call, which was faulty. When the render thread was done rendering the flag should have been reset which would have meant another locked sync between render and GUI. Solve it slightly differently by posting an event to ourselves in GUI and resetting the state once the event is processed. This batches all update calls made until the GUI thread returns to the event loop, aka all animation updates, all responds to one touch event, etc. The isExternalUpdatePending variable, written from maybeUpdate, was accumulated per canvas, but is used per render thread only, so this change simplifies the variable to be per render thread only. Task-number: QTBUG-23478 Change-Id: I067a9918383e3e05e2feebcc6dfa3163b032eb5b Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
* QQuickListView is unstable when run as parallelGunnar Sletta2012-01-091-1/+0
| | | | | Change-Id: I4d7e31e69f4b71d5ecf2113b90343e10320e8056 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Avoid storing a deep copy of the image in the texture objectGunnar Sletta2012-01-091-7/+8
| | | | | Change-Id: I605445ea23493fd562a7fe2b3cc841ad21e5b08b Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* QDeclarativeDebug: Add a debug message service.Aurindam Jana2012-01-098-3/+477
| | | | | | | | | | | QDeclarativeDebugMsgService installs a QtMsgHandler which forwards debug output to a client defined port only if the service is Enabled. It also forwards the debug output to the previous message handler. Effectively, this service just eavesdrop on debug output, forwarding it to a port only if a client is connected. Change-Id: Ie0ee7bab57ef8f03a2de34d91921f054a7ec147f Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
* Pin qtdeclarative to a version of qtbase that still contains QtV8Simon Hausmann2012-01-091-1/+1
| | | | | | | | This is a temporary measure until the new qtjsbackend module is fully in place. Change-Id: I5cfe277ee6a14680f378dd4d4c0f94dfa56fbac3 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix positioning issues and change content y repositioning behaviourBea Lam2012-01-096-159/+562
| | | | | | | | | | | | | | | | | | | | | | | Refactor the code for re-positioning the visibleItems.first() in QSGItemView::applyModelChanges() and fix various positioning issues. The positioning behaviour for removing items at the start of the view has changed. This action will no longer cause the content y to move down; previously the content y would always move down unless another item was moving backwards to the first visible position. This will make it easier to implement built-in removal transitions for the views, since removed items cannot be animated if the content y jumps down past them. Additionally, moving items from before a GridView should not cause the top item in the view to move upwards and out of the view. This also adds additional remove tests and fixes the tst_QQuickGridView::moved() test which wasn't waiting for the polish event after setting the content y, which caused some of the tests to pass even though their test data was wrong. Change-Id: Idad11a73a18f88208e73a52111ed839458e05f2d Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix QQuickItemParticle timing issuesAlan Alpert2012-01-093-13/+18
| | | | | | | | | | | It was possible for m_loadables to be reset before the items were loaded, and the datum pointer was lost. This was exacerbated by another bug where reset was called every frame for no reason. Both bugs are now fixed. Task-number: QTBUG-23491 Change-Id: I9b60858621b697fc46de1e964cb27ddc0d2dbc65 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Remove QSKIPs from border image autotest.Michael Brasser2012-01-091-5/+0
| | | | | | | | The fix for QTBUG-23484 also fixed this issue. Task-number: QTBUG-23479 Change-Id: If55e623432b9ad620cad91e5083b1f94382acec6 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Remove QSKIPs from font loader autotest.Michael Brasser2012-01-091-16/+0
| | | | | | | | The fix for QTBUG-23484 also fixed this issue. Task-number: QTBUG-23477 Change-Id: Ie25339e17a079d7e67a92ad8db76f0305399277e Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Fix failing tst_QQuickPathView::undefinedPath()Bea Lam2012-01-091-8/+7
| | | | | | | | | | Test was failing on Mac because QPainterPath only prints the relevant warnings if QT_NO_DEBUG is not defined, which is not the case for standard builds on Mac. Task-number: QTBUG-23482 Change-Id: Ied4d263a1ce7503b573ecc3c53787dac2b57cc74 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Un-QSKIP an autotestAaron Kennedy2012-01-081-4/+0
| | | | | | | | | QTBUG-23484 has now been fixed. Task-number: QTBUG-23484 Change-Id: I30252c9203c5c1348377a84518da816b1c15ff6d Reviewed-by: Robin Burchell <robin+qt@viroteck.net> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Fix importing of files on Windows.Friedemann Kleint2012-01-071-1/+1
| | | | | | | | | Do not create local file Urls by adding 'file://' + path, use QUrl's logic to correctly add missing slashes for Windows drive letters. Change-Id: I1a8a58a0d88ef291bb814303747ce53093be17a2 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Make accessibility interface functions const.Frederik Gladhorn2012-01-062-6/+6
| | | | | | | Follow the change in qtbase. Change-Id: I43427369235585e9fb628d1a8f62891d44107cc9 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* QDeclarativeEngine: Polish code for file name case check.Friedemann Kleint2012-01-061-9/+8
| | | | | | | | | | - Use Q_OS_WIN instead of Q_OS_WIN32 - const-correctness - Use QString::fromWCharArray() Change-Id: I67aa4bb69240cf187832ea456dd74d2909e7ae62 Reviewed-by: Kai Koehne <kai.koehne@nokia.com> Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
* Reuse the OObject* in QAccessibleObjectJan-Arve Saether2012-01-064-31/+29
| | | | | | | Saves a few bytes per interface.... Change-Id: I2d66a563d28b94e08179bc43d4465509e0cb88f2 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* Improve QML error messagesAaron Kennedy2012-01-0610-18/+32
| | | | | | | | Point at the actual property and method name when raising errors about them. Change-Id: Id36df4850b91ae0d225fcda4d101f4b2a073a72e Reviewed-by: Kent Hansen <kent.hansen@nokia.com>
* Create a value interface for qml accessibles.Frederik Gladhorn2012-01-063-4/+61
| | | | | Change-Id: I472052c6d61a3a32033544ebb5afc5b11fb093e2 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Hide more children of accessible objects.Frederik Gladhorn2012-01-061-1/+8
| | | | | Change-Id: Ie8874b3b5a354f7f0586efb601b217e4d296af5c Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Flickable now emits contentX/YChanged after the content is updatedMartin Jones2012-01-062-16/+8
| | | | | | | | | | | | Currently view content is not created until after onContentYChanged handlers are called, which is not what the user would expect This change moves the contentX/YChanged emission to after the content update and also removes the need for a connect() in Flickable init. Task-number: QTBUG-23462 Change-Id: I11e87a78160033e3ec6a9e7de733474f8345050d Reviewed-by: Bea Lam <bea.lam@nokia.com>