summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativefocusscope
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2011.Jason McDonald2011-01-101-1/+1
| | | | Reviewed-by: Trust Me
* Don't emit activeFocusChanged() unless the active focus actually changedTor Arne Vestbø2010-12-072-0/+135
| | | | | | | | | | | | | | | | | | | | | | | We would previously call subFocusItemChanged(0) on the item as part of clearing the subfocus, even if the item in question would recieve a new subfocus item as part of setting the new subfocus. This resulted in the declarative item emitting activeFocusChanged(false) and then activeFocusChanged(true), which was affecting any animation or state bound to the activeFocus property of the item. We now stop clearing the subfocus when encountering an item that we know will get subfocus during the set-subfocus pass. We then set subfocus all the way to the root item, since the subfocus item itself might change. The effect of this is that the declarative item will only get one call to subFocusItemChanged(), passing the new subfocus item, instead of two. This means the declarative item can keep track of wherther ot not it had a subfocus item previously, and only emit activeFocusChanged() when the active focus goes from true to false or false to true. Task-number: QTBUG-15615 Reviewed-by: Yoann Lopes <yoann.lopes@nokia.com>
* Further focus scope fixes.Michael Brasser2010-10-191-0/+6
| | | | | | Follow-up to e11ee40cefc981fbdcfb10816039d4efb080fb17. Reviewed-by: Yoann Lopes
* Don't give focus to a FocusScope that has had focus explicitly cleared.Michael Brasser2010-10-112-0/+50
| | | | | | | If focus was explicitly cleared on a non-visible FocusScope, and then it was made visible, it would incorrectly grab focus. Task-number: QTBUG-13380
* Replace all occurances of "Qt 4.7" with "QtQuick 1.0"Aaron Kennedy2010-09-298-8/+8
| | | | | Task-number: QTBUG-13799 Reviewed-by: Martin Jones
* Top-level QML item should not have special focus handling.Michael Brasser2010-08-061-1/+1
| | | | | | | | It's the scene itself that acts as a focus scope, not the top-level item. Task-number: QTBUG-12682 Reviewed-by: Aaron Kennedy
* Add missing test file.Michael Brasser2010-08-051-0/+33
|
* Make sure onFocusChanged is correctly emitted for items in a FocusScope.Michael Brasser2010-08-051-0/+56
| | | | | Task-number: QTBUG-12649 Reviewed-by: Martin Jones
* QML focus API updates.Michael Brasser2010-07-218-109/+104
| | | | | | | | | The wantsFocus property has been renamed to activeFocus, to better reflect its value. Reading and writing the focus property is also now consistent -- this property represents focus within a scope. Other small changes were made to keep things consistent with the new naming. Reviewed-by: Aaron Kennedy
* wantsFocus should be based on FocusScope chain, not parent chain.Michael Brasser2010-07-135-8/+51
| | | | | | | | Ancestors of the item with focus should only report wantsFocus as true when they are a FocusScope or a top-level item. Reviewed-by: Aaron Kennedy Reviewed-by: Yann Bodson
* Make declarative autotests compile on Symbian abld build systemJoona Petrell2010-06-082-2/+5
| | | | | Task-number: Reviewed-by: Martin Jones
* Symbian build fix to declarative auto and benchmark testsJoona Petrell2010-05-141-1/+8
| | | | | Task-number: QTBUG-9491 Reviewed-by: Martin Jones
* Fix versioning of Qt Declarative's in-built typesAlan Alpert2010-04-216-6/+6
| | | | | | Since we aren't releasing for 4.6, all types are new in 4.7. Task-number: QTBUG-10081
* Add forceFocus method to QDeclarativeItem.Yann Bodson2010-04-215-3/+141
| | | | Reviewed-by: Aaron Kennedy
* Tweak tests to run in parallelAaron Kennedy2010-04-131-0/+1
|
* TextEdit::wrap changed to TextEdit::wrapMode enumerationMartin Jones2010-04-091-2/+2
|
* Move basic focusscope examples into auto tests.Yann Bodson2010-03-307-0/+612