Merge lp:~daker/ubuntu-ui-toolkit/fix.1630872 into lp:ubuntu-ui-toolkit/staging

Proposed by Adnane Belmadiaf
Status: Merged
Approved by: Cris Dywan
Approved revision: 2175
Merged at revision: 2179
Proposed branch: lp:~daker/ubuntu-ui-toolkit/fix.1630872
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 17 lines (+6/-1)
1 file modified
src/imports/Components/1.3/TextField.qml (+6/-1)
To merge this branch: bzr merge lp:~daker/ubuntu-ui-toolkit/fix.1630872
Reviewer Review Type Date Requested Status
ubuntu-sdk-build-bot continuous-integration Approve
Cris Dywan Approve
Review via email: mp+317806@code.launchpad.net

Commit message

Make sure we resets partial text input from the input method

Description of the change

Clear method has been in Qt 5.7 so for now we need to reset the input method & put an empty string to clear the input field

To post a comment you must log in.
Revision history for this message
Cris Dywan (kalikiana) wrote :

Good catch, I wasn't aware of this. And good call on the FIXME. Good to go!

review: Approve
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/imports/Components/1.3/TextField.qml'
--- src/imports/Components/1.3/TextField.qml 2017-01-18 13:00:07 +0000
+++ src/imports/Components/1.3/TextField.qml 2017-02-21 00:18:16 +0000
@@ -988,7 +988,12 @@
988 name: control.hasClearButton && !control.readOnly ? "edit-clear" : ""988 name: control.hasClearButton && !control.readOnly ? "edit-clear" : ""
989 }989 }
990990
991 onClicked: editor.text = ""991 onClicked: {
992 //FIXME: Invoke editor.clear() once the SDK moves to Qt 5.7
993 // http://doc.qt.io/qt-5/qml-qtquick-textinput.html#clear-method
994 editor.text = "";
995 Qt.inputMethod.reset();
996 }
992 }997 }
993998
994 // hint text999 // hint text

Subscribers

People subscribed via source and target branches