Merge lp:~songofacandy/qbzr/hide_popup_when_ime into lp:qbzr

Proposed by methane
Status: Merged
Merge reported by: methane
Merged at revision: not available
Proposed branch: lp:~songofacandy/qbzr/hide_popup_when_ime
Merge into: lp:qbzr
Diff against target: 26 lines (+5/-0)
2 files modified
NEWS.txt (+1/-0)
lib/commit.py (+4/-0)
To merge this branch: bzr merge lp:~songofacandy/qbzr/hide_popup_when_ime
Reviewer Review Type Date Requested Status
Gary van der Merwe Approve
Review via email: mp+24566@code.launchpad.net

Description of the change

hide popup when catch inputMethodEvent.

To post a comment you must log in.
Revision history for this message
Gary van der Merwe (garyvdm) :
review: Approve
Revision history for this message
methane (songofacandy) wrote :

I've pushed.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'NEWS.txt'
2--- NEWS.txt 2010-04-19 08:16:20 +0000
3+++ NEWS.txt 2010-05-02 13:47:20 +0000
4@@ -4,6 +4,7 @@
5 (Bug #542429, Toshio Kuratomi).
6 * qinit: set default value for repository format in the combobox.
7 (Bug #531795, Gordon Tyler)
8+ * qcommit: hide completer's popup. (Bug #573652)
9
10
11 0.19 Beta 1 "Monkey-puzzle, aka Araucaria araucana" - 2010/03/29
12
13=== modified file 'lib/commit.py'
14--- lib/commit.py 2010-03-25 22:35:13 +0000
15+++ lib/commit.py 2010-05-02 13:47:20 +0000
16@@ -72,6 +72,10 @@
17 self.eow = QtCore.QString("~!@#$%^&*()_+{}|:\"<>?,./;'[]\\-=")
18 self.main_window = main_window
19
20+ def inputMethodEvent(self, e):
21+ self.completer.popup().hide()
22+ QtGui.QTextEdit.inputMethodEvent(self, e)
23+
24 def keyPressEvent(self, e):
25 c = self.completer
26 e_key = e.key()

Subscribers

People subscribed via source and target branches