summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * Debugger: Simplify protocol of QDebugMessageServiceKai Koehne2012-01-171-6/+2
| | | | | | | | | | Change-Id: I3f97a344b8d0e0d73a75e84310c1e8ed59573ee7 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
| * Fix crash when using namespaces for JS module APIs.Glenn Watson2012-01-171-1/+1
| | | | | | | | | | | | | | Fix unitialized variable in constructor. Change-Id: Ibc39d7512990ad293789280e26797be1ecd1ade1 Reviewed-by: Martin Jones <martin.jones@nokia.com>
| * Connection was accidentally of the Queued varietyAlan Alpert2012-01-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | This connection needs to be direct, because right after that signal is emitted the next frame is drawn (before we return to the event loop at least). The sprite updating needs to happen in time for the frame or the sprites get confused. Task-number: QTBUG-23407 Change-Id: Ie56465145461486456462154dfafe546fedaaaaa Reviewed-by: Martin Jones <martin.jones@nokia.com>
| * Update copyright year in Nokia copyright headers.Jason McDonald2012-01-17126-126/+126
| | | | | | | | | | | | | | | | Update copyright headers from before 2011, and a couple of new ones that were merged after the previous change to copyright headers. Change-Id: Ia76e08e2734afa4ef3f1207dbcda5ff3bc81b366 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
| * Match QRect changeAlan Alpert2012-01-171-7/+0
| | | | | | | | | | | | | | | | 3b973971fb1e483b9b3514358a415781c3c24ba8 changes the order of data members on mac, the struct we're using to fake QRect needs to match. Change-Id: Id2ecf1726e64514e12dd72980a0c0ad2b693c483 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
| * Added log and status properties to ShaderEffect.Kim Motoyoshi Kalland2012-01-166-36/+221
| | | | | | | | | | | | | | Task-number: QTBUG-23531 Change-Id: I136f6d9642ff9d4074fe8dae1f5714a05349107a Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
| * Console API: Add console.infoKai Koehne2012-01-162-2/+5
| | | | | | | | | | | | | | | | Add console.info for the sake of completeness. It's mapped to qDebug(), just like console.log, console.debug, print. Change-Id: Ife1cfbfe810d4e5e9175343778dff734a56f4a80 Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
| * Remove all reimplementations of relationTo() returning Unrelated.Jan-Arve Saether2012-01-162-6/+0
| | | | | | | | | | | | | | | | QAccessibleInterface::relationTo() already return QAccessible::Unrelated by default. No need to duplicate that code. Change-Id: Ie64e798a1935619af32ae41d7e14ae26bd9bf523 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@nokia.com>
| * Fix preedit text visibility for TextEditJiang Jiang2012-01-161-30/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | For an empty TextEdit with preedit text, we need to add the text separately since the blockIterator will not go through that case. Also fixed preedit text appended at the end of any commited text. Move the code for adding text into SelectionEngine so that we can reuse it for adding preedit text. Task-number: QTBUG-22647 Change-Id: Id4fe04099b16949ff5de0747881c6dc96ef0673f Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
| * QDeclarativeExpression: storing column number in expression locationChristiaan Janssen2012-01-1626-61/+89
| | | | | | | | | | Change-Id: I2d69738158abfc76f80b1cfc0e0ccb145fda2245 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
| * Avoid creating unnecessary copies of TextEdit's text data.Andrew den Exter2012-01-164-21/+26
| | | | | | | | | | | | | | | | Delay rebuilding the text data from QTextDocument until it is actually requested rather than everytime the contents of the document change. Change-Id: Ibfdc9e9e0372010f0731fb02a223c8b59a67f2c3 Reviewed-by: Martin Jones <martin.jones@nokia.com>
| * Test more of QQuickImageParticleAlan Alpert2012-01-162-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | Now the color variance properties are tested, as is the debug code. Just running the debugging code is valid testing, as it contains pointer derefernces that could cause runtime errors, and this codepath is not always enabled at runtime. Additionally, debug mode control has been consolidated in the ParticleSystem. However, this was not necessary for this test addition. Change-Id: Ie56465145461486456462154dfafe546fedabcba Reviewed-by: Martin Jones <martin.jones@nokia.com>
| * Handle views with negative width/heightMartin Jones2012-01-162-19/+7
| | | | | | | | | | | | | | | | | | A view with a negative d->size() would get stuck in an infinite loop. Also make sure item layout/visibility is updated when the view size changes. Change-Id: I1f16a714ecebe1c4b71902c460e27fb0f1c4406f Reviewed-by: Bea Lam <bea.lam@nokia.com>
| * lower case QML components are accepted when used with 'as' importMatthew Vogt2012-01-161-5/+20
| | | | | | | | | | | | | | | | | | 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>
* | Animations may be deleted while changing stateBea Lam2012-01-251-5/+6
| | | | | | | | | | | | | | Move check for deleted animation from setCurrentTime() to setState(). Change-Id: I8160c4cf68f7e7b11185d3190d42e5c375540254 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* | Fix crash when exiting with running animation.Michael Brasser2012-01-243-3/+10
| | | | | | | | | | Change-Id: I3940b3d9f20ca948e435d583366544eecb895fb2 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* | Fix regression in highlight animation.Michael Brasser2012-01-242-5/+15
| | | | | | | | | | Change-Id: Id8476ce3944094d48389f2ef24c0e26635e25c58 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* | Update PathAnimation API and document.Michael Brasser2012-01-243-26/+136
| | | | | | | | | | | | | | | | Update the API according to the last API review. Document it and add a basic example as well. Change-Id: I2d06a0772a9fb2101844446e68799620c275db97 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* | Re-add documentation for AnchorAnimation and ParentAnimation.Michael Brasser2012-01-241-0/+123
| | | | | | | | | | Change-Id: I2dfec71ef24d83492b8ade5849392e4b056ba5f6 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* | Fix SpringAnimation regression.Michael Brasser2012-01-201-52/+63
| | | | | | | | | | | | | | This fixes the tvtennis example. Change-Id: Ia82cb1cdf30a361f8f96db7b7cb090e181d910d9 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* | Document PathInterpolator.Michael Brasser2012-01-201-0/+42
| | | | | | | | | | Change-Id: I8fb625fb6881af8d0928da3d487dcd659dc384f5 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* | PathInterpolator should report angle in clockwise direction.Michael Brasser2012-01-201-0/+5
| | | | | | | | | | | | | | This makes it much more intuitive when binding item rotation to angle. Change-Id: I5654866d9cd1c0ff5899c5571532fc7fedddd440 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* | Delay deletion of previous transition instance.Michael Brasser2012-01-191-6/+5
| | | | | | | | | | | | | | | | Some animations can change their behavior based on the previous instance. Change-Id: I7fd86a6fab0bca6ff3330126616ed14c4236dac2 Reviewed-by: Bea Lam <bea.lam@nokia.com>
* | Fix potential crash.Michael Brasser2012-01-195-0/+20
| | | | | | | | | | Change-Id: I374d13a80d8778ddad081b29a0cbd63a9bf44f35 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* | Rename animation backend classes.Michael Brasser2012-01-1928-337/+337
| | | | | | | | | | Change-Id: I8796086097b5464dbe16a92df055e5a153971f21 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* | Port autotests for basic animation classes and make them pass.Michael Brasser2012-01-185-6/+9
| | | | | | | | | | Change-Id: Ifd9ec5817f6c06ccb282ee32e1a86d1465752c2b Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* | Update Transition and TransitionManager for animation changesBea Lam2012-01-174-39/+91
| | | | | | | | | | | | | | | | | | | | | | | | Update QDeclarativeTransition and QDeclarativeTransitionManager to use the new animation classes. QDeclarativeTransition::prepare() now returns a new animation instance each time it is called. Also added isRunning() and finished() for QDeclarativeTransitionManager. Change-Id: I605f13256320ba76f439b859696eac151fb52591 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* | Correctly clear activeAnimations for smoothed, spring, and path animation.Michael Brasser2012-01-175-16/+52
| | | | | | | | | | | | | | Remove animations from the hash when they are deleted. Change-Id: I17dd8f577a6d3cb0282b24d6d52f963caecfcd33 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* | Test fixes.Michael Brasser2012-01-172-9/+9
| | | | | | | | | | Change-Id: Id656b2f7bae56667de6e5bcb4914f2f65001ef79 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* | Fix regressions.Michael Brasser2012-01-173-2/+12
| | | | | | | | | | Change-Id: I1a961d257801ed98bc06675d34b19833e7486e61 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* | Merge branch 'master' into animation-refactorMichael Brasser2012-01-16761-7045/+11668
|\ \ | |/ | | | | | | | | | | | | Conflicts: src/quick/util/qdeclarativetimer.cpp tests/auto/qtquick2/qdeclarativeanimations/tst_qdeclarativeanimations.cpp Change-Id: I981b0d01c71035f6611682e742f4330d0ef7891b
| * 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>