[immodule-qt] Re: [SCIM] scim-qtimm 0.7 released

YamaKen yamaken at bp.iij4u.or.jp
Mon Sep 6 19:49:10 EEST 2004


At Mon, 6 Sep 2004 01:05:37 +0000,
liucougar at gmail.com wrote:
> I updated this patch:
> 
> void QApplication::postIMEvent( QObject *receiver, QIMEvent *event )

> and move this function from src/kernel/qapplication_x11.cpp to
> src/kernel/qapplication.cpp : first, this function does not use any
> x11 specific apis,

It should not be moved.

Although the function is not using X APIs, the functionn itself
is only existing for Qt/X11 platform. See qapplication.h.

#if defined(Q_WS_X11)
private slots:
    void postIMEvent( QObject *receiver, QIMEvent *event );
#endif

This part of immodule implementation will vary by platform. For
example, Qt/Embedded will not use QApplication::postIMEvent() to
receive IMEvents from input method plugins. It will be
QWSServer::postIMEvent() because Qt/Embedded had adopted
client/server model for input methods to reduce resource
requirements.

See following diagram if you want to know Qt/Embedded more.

http://www.kde.gr.jp/~daisuke/immodule_for_qt/pukiwiki/?plugin=attach&openfile=qte237-qws-class.png&refer=Qt%2FEmbedded%A4%CB%A4%AA%A4%B1%A4%EBInputMethod%A4%CE%CA%AC%C0%CF%A5%E1%A5%E2

> second, QPostEventList is only available in qapplication.cpp.

I wish the second reason is lost by my patch.

-------------------------------
YamaKen  yamaken at bp.iij4u.or.jp



More information about the immodule-qt mailing list