[Qt-qml] Changes to focus properties

michael.brasser at nokia.com michael.brasser at nokia.com
Wed Jul 21 04:40:51 CEST 2010


On 08/07/2010, at 2:32 PM, ext michael.brasser at nokia.com wrote:
> I have some small changes to the focus-related properties that I'm hoping to commit in the next couple days:
> 
> * 'wantsFocus' will be renamed to 'activeFocus'
> * the semantics of reading from 'focus' will change to indicate whether the item is the focus item for its FocusScope
> 
> This fixes two confusions with the current properties: (1) the 'wantsFocus' name doesn't really match what that property does, and (2) the semantics of reading from vs. writing to 'focus' are currently very different. 
> 
> For more on the change see the attached path; I'm happy to give more details on the reasoning if anyone is interested.

This has now been pushed to the staging repo. in addition to the above, forceFocus() was renamed to forceActiveFocus() and focusOnPress was renamed to activeFocusOnPress for better consistency with the focus framework (as we normally do, these changes have been added in the log in src/declarative/QmlChanges.txt).

Regards,
Michael



More information about the Qt-qml mailing list