[immodule-qt] [PATCH] Surrounding text

Anuradha Ratnaweera gnu.slash.linux at gmail.com
Wed Sep 22 09:13:25 EEST 2004

Hi all,

Finally I managed to get surrounding text support in QT 3.3.3.

As we discussed here recently, it was done by adding a
imGetSurrounding() and imDeleteSurrounding() virtual functions in
QWidget and overiding them in QTextEdit and QLineEdit.  QInputContext
also implements getSurrounding() and deleteSurrounding() functions,
that simply call the corresponding ones in its composingWidget.

I am not totally happy with the way I implemented imGetSurrounding()
in QTextEdit.  Please comment.

Plain QT applications such as qtconfig, and qt designer are working
perfectly.  But some KDE applications that have their own input
widgets (e.g.: Kate) doesn't work.  Adding, or rather overiding,
imGetSurrounding() and imDeleteSurrounding() for them shouldn't be
that tough.  I am looking into it now.

Attached patch along with Sinhala Transliterated input method which I
use to test it are here:


Notice that the patch qt-3.3.3-im-sinhala.patch is redundant because
it simply adds the contents in sinhala-t to QT source tree, and also
adds sinhala-t to inputmethods.pro.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: qt-3.3.3-im-surround.patch
Type: text/x-patch
Size: 5692 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/immodule-qt/attachments/20040922/975d3ece/attachment.bin 

More information about the immodule-qt mailing list