Reviewing merge request #1297: 274320 - Text area selection disappears when swiping away from QML components gallery

The textarea forgot its state during window focus loss. Apparently this was implemented intentionally for the case where there are different TextAreas in one single window and where you wouldn't want to have both selected at once.

For the case of a window focus change we preserve the selection state with this fix. To be extra careful about compatibility with prior versions of Qt Components we introduce a property that remembers and restores the prior state of the TextEdit.persistentSelection property.

Commits that would be merged:

Version 1
  • Version 1
  • e87d832
  • 2c08bf4
  • Fixes: NB#274320 - Text area selection disappears when swiping away from

Showing e87d832-2c08bf4

Comments

Pushed new version 1

→ State changed from New to Go ahead and merge

Tested OK. Works OK with TextArea.
Selected text in QCG TextArea remains selected and editbubble appears when the application is minimised and then maximised.

balajic: what do you think about the TextField – is the current behavior alright or shall I adjust it accordingly?

→ State changed from Go ahead and merge to Merged

Better to have same implementation for the TextField, this should be the case in libmeegotouch.

If needed separate issue can be reported for the TextFIeld.

MR Merged with the Master

Add a new comment:

Login or create an account to post a comment

How to apply this merge request to your repository