[immodule-qt] [PATCH] Surrounding text

Anuradha Ratnaweera gnu.slash.linux at gmail.com
Wed Sep 29 15:55:12 EEST 2004


On Tue, 28 Sep 2004 00:28:41 +0900, Daisuke Kameda
<kaminmat at cc.rim.or.jp> wrote:
> On Friday 24 September 2004 17:47, Anuradha Ratnaweera wrote:
> 
> > Thanks.  What's the neat way add it only if qt+im is compiled with
> > binary incompatibility enabled?
> 
> I have considered. Probably, the best solution is that we implement
> QWidget::imGetSurrounding() and QWidget::imDeleteSurrounding()
> like QWidget::icHolderWidget().
> 
> These are set to virtual when QT_NO_IM_EXTENSIONS is defined
> (configure option is -inputmethod-ext). And these functions of QLineEdit
> and QTextEdit are made to be compiled only in this case.
> 
> What do you think about this solution?

I saw icHolderWidget(), but didn't notice this trick until you
mentioned.  Yes, it's a nice solution.  I'll create a new patch.  If I
failed to send you a modified patch before the next release of qt-im,
please commit the present one, and I'll send an incremental one later.

        Anuradha

-- 

http://www.linux.lk/~anuradha/
http://www.gnu.org/philosophy/no-word-attachments.html



More information about the immodule-qt mailing list