Merge lp:~fboucault/unity-2d/dash_clear_hint_on_partial_input_method into lp:unity-2d

Proposed by Florian Boucault
Status: Merged
Approved by: Gerry Boland
Approved revision: 717
Merged at revision: 720
Proposed branch: lp:~fboucault/unity-2d/dash_clear_hint_on_partial_input_method
Merge into: lp:unity-2d
Diff against target: 30 lines (+3/-3)
1 file modified
places/SearchEntry.qml (+3/-3)
To merge this branch: bzr merge lp:~fboucault/unity-2d/dash_clear_hint_on_partial_input_method
Reviewer Review Type Date Requested Status
Gerry Boland Pending
Review via email: mp+75236@code.launchpad.net

Description of the change

[dash] Do not display the search hint in the search field when a partial input is available from an input method.

Only works with Qt Quick 1.1.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'places/SearchEntry.qml'
2--- places/SearchEntry.qml 2011-08-25 13:08:52 +0000
3+++ places/SearchEntry.qml 2011-09-13 18:21:23 +0000
4@@ -16,7 +16,7 @@
5 * along with this program. If not, see <http://www.gnu.org/licenses/>.
6 */
7
8-import QtQuick 1.0
9+import QtQuick 1.1
10 import Effects 1.0
11
12 AbstractButton {
13@@ -96,7 +96,7 @@
14 offset.x: 0
15 offset.y: 0
16 color: "white"
17- enabled: search_input.text != ""
18+ enabled: search_input.text != "" || search_input.inputMethodComposing
19 }
20
21 anchors.left: search_icon.right
22@@ -165,7 +165,7 @@
23 fontSize: "x-large"
24 font.italic: true
25 text: {
26- if(search_input.text)
27+ if(search_input.text || search_input.inputMethodComposing)
28 return ""
29 else if(dash.currentPage != undefined && dash.currentPage.model.searchHint)
30 return dash.currentPage.model.searchHint

Subscribers

People subscribed via source and target branches