aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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>
* 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-127-7/+10
| | | | | | | 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-123-6/+3
| | | | | | | 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-124-28/+77
| | | | | | | | | | | | | | | | | | | | 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-122-4/+6
| | | | | | | | | | 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-127-14/+148
| | | | | | | | | 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>
* Fix restarting timer from onTriggered handler.Andrew den Exter2012-01-121-1/+1
| | | | | | | | | | 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-121-1/+2
| | | | | | | | | | 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>
* Remove obsolete toBoolean() and isBoolean() QJSValue gettersSimon Hausmann2012-01-112-28/+0
| | | | | | | 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-108-25/+68
| | | | | | | 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>
* Fix tst_qdeclarativestates::anchorsRewindBug failureGunnar Sletta2012-01-091-33/+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>
* 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-094-2/+217
| | | | | | | | | | | 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>
* Fix positioning issues and change content y repositioning behaviourBea Lam2012-01-094-142/+151
| | | | | | | | | | | | | | | | | | | | | | | 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-092-11/+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>
* 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-063-11/+25
| | | | | | | | 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>
* Add itemAt(x,y) function to GridView and ListView.Martin Jones2012-01-064-0/+39
| | | | | | | Task-number: QTBUG-21592 Change-Id: I3169e789da701ce261250421239584abd7f29b57 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Smooth join point for closed Paths starting and ending with PathCurve.Michael Brasser2012-01-061-4/+34
| | | | | Change-Id: I6d416e7d794271c10c9eb19de9678b0fe45b083d Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Remove all references to QAccessible:: {Child|Ancestor|Sibling}Jan-Arve Saether2012-01-055-108/+9
| | | | | | | | | | | These are deprecated in favor of QAccessibleInterface::child() and QAccessibleInterface::parent() QAccessible::Sibling can be done with a combination of those two. This is handled by the bridge Change-Id: Ie63d74314189d9e0f24f1152a2f0030d9e865b75 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
* QQuickTextInput to better call QInputPanel::update()Pekka Vuorela2012-01-051-4/+17
| | | | | | | | | | Some updates were previously omitted, e.g. if text content changed but cursor position remained the same, or if input method changed the selection. Change-Id: I11abd105632d73f8ebb23d0e8c308c53c236cc15 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com> Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
* Initialize isAccessible to 0.Frederik Gladhorn2012-01-051-1/+1
| | | | | Change-Id: Icf76fbd0bd8fba929e6238f556447761a4eb34c7 Reviewed-by: Jan-Arve Sæther <jan-arve.saether@nokia.com>
* Fix crash on null Qimage in QSGPainterNode::paintMorten Johan Sorvig2012-01-051-0/+3
| | | | | | | | Creating a QPainter on a null image is not allowed, return early if this is the case. Change-Id: I56f30c0fd84eefc1676d6b980f77269abace07ce Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-05701-703/+703
| | | | | Change-Id: I0a8d99909cac867dce72da70b1bbcb649989a51b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Document new Path elements.Michael Brasser2012-01-051-6/+263
| | | | | Change-Id: Ic1e2aa7da63a7d9e12357a609fc52b3913f14f28 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Support <pre> in StyleText textFormatMartin Jones2012-01-052-0/+24
| | | | | | | Task-number: QTBUG-23159 Change-Id: I842d066efb3a78defba61cc31060840f771f9b11 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Document inputMethodHints and cursorRectangle properties.Andrew den Exter2012-01-052-4/+103
| | | | | | | Task-number: QTBUG-22612 Task-number: QTBUG-20764 Change-Id: Ibab86c5934f0ad6e3115a00371a5b2a6961720b5 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix clipping of TextInput contents.Andrew den Exter2012-01-051-3/+1
| | | | | | | | | | | | The boundingRect represents the clip rectangle of an item rather than the size and position of its unclipped content. This would prevent any content from being clipped except the boundingRect is only re-evaluated when the size of the item changes so the content is instead clipped to the size of the original content. Task-number: QTBUG-23422 Change-Id: I96f830f833129b3230f65452db67b00028c40d6a Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix moving mixed visible and non-visible View items.Andrew den Exter2012-01-041-2/+1
| | | | | | | | | | | | | | A removal for a move that included both cached and non-cached was only evaluating the first part of the removal and skipping the remainder. Don't skip all subsequent removals when two ranges are merged, instead reset the current indexes to the start of the merged range and continue on as normal. Task-number: QTBUG-23432 Change-Id: Ieda49e2f68cd0bbbd31ba1e7dfd5af7c3e350d78 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* Add length property and insert, remove and getText functions to TextInput.Andrew den Exter2012-01-042-5/+202
| | | | | | | | These mimic the functionality of their pre-existing counterparts in TextEdit. Change-Id: Idcb7549cd07ed3c287ab00b7828a3158690faf0e Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Fix crash in TextInput.Andrew den Exter2012-01-041-7/+9
| | | | | | | | | Ensure the text is laid out before calling componentComplete() on QImplicitSizeItem, as that can potentially evaluate bindings which would then access the uninitialized layout. Change-Id: I5152c1494c54209dae61c13b2f45d343fb76bf9e Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Initialize AnimIdxAlan Alpert2012-01-041-0/+2
| | | | | | | | Otherwise any attempted reads later will get a stale value from a previous particle (only happens with custom affectors though) Change-Id: Iab3c7736d5c01218174ef8b331057df57b591209 Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Speed up TextInput and TextEdit creation.Andrew den Exter2012-01-042-4/+2
| | | | | | | | Update the canPaste property directly when changing the read-only property instead of connecting to the readOnlyChanged signal. Change-Id: Ic6f6ba66f6b94448045703f7d2a66218548190dd Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Added a link to Number::toLocaleCurrencyString in the doc.Denis Dzyubenko2012-01-041-0/+1
| | | | | Change-Id: If44cc225d132bd309efdb250aad74f8e11062e8f Reviewed-by: Martin Jones <martin.jones@nokia.com>
* Introduce layerering support (ShaderEffectSource) directly in ItemGunnar Sletta2012-01-0316-36/+566
| | | | | | | | | | | | | This is enabled by doing "Item.layer.enabled: true". The implementation is solely based on the existing shader effect (source) and simply swaps in a sibling next to the item when enabled. This change also adds the QSGTextureProvider to the public API, as it is now a natural part of the QQuickItem API since all items can be textures. Change-Id: I26705c11e92d5623a5121300acc123782b784077 Reviewed-by: Kim M. Kalland <kim.kalland@nokia.com>
* Use Qt::ImhSensitiveData input hint on TextInput with password echo modePekka Vuorela2012-01-031-1/+1
| | | | | Change-Id: I1e9255af24b51ca42c1e6df7a92664be532ce725 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>