[immodule-qt] Re: qt-immodule-20040812: It causes problems (UTUMI Hirosi)

Karl Park Karl.Park at Sun.COM
Fri Aug 13 00:11:56 EEST 2004


Hi UTUMI, 

Please see my comments inline.

On Thu, 2004-08-12 at 12:00, immodule-qt-request at freedesktop.org wrote:
> Send immodule-qt mailing list submissions to
> 	immodule-qt at freedesktop.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://freedesktop.org/mailman/listinfo/immodule-qt
> or, via email, send a message with subject or body 'help' to
> 	immodule-qt-request at freedesktop.org
> 
> You can reach the person managing the list at
> 	immodule-qt-owner at freedesktop.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of immodule-qt digest..."
> 
> 
> Today's Topics:
> 
>    1. qt-immodule-20040812: It causes problems (UTUMI Hirosi)
>    2. Qt 3.3.3 bugfix version released (LiuCougar)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Fri, 13 Aug 2004 01:48:35 +0900 (JST)
> From: UTUMI Hirosi <utuhiro78 at yahoo.co.jp>
> Subject: [immodule-qt] qt-immodule-20040812: It causes problems
> To: immodule-qt at freedesktop.org
> Message-ID: <20040812164835.39537.qmail at web1707.mail.yahoo.co.jp>
> Content-Type: text/plain; charset=iso-2022-jp
> 
> Hi,
> I tested qt-x11-immodule-unified-20040812, and I packed it
> (RPM/SRPM for Mandrake Cooker).
> 
> I'm using uim-svn1091 and uim-qt-svn1091.
> I selected backward compatible qt-immodule.
> 
> I got some errors. Maybe I made some mistakes. :-)
> $ qtconfig 
> --> Segmentation fault
> 
> So I did
> $ su
> # cd /usr/lib/qt3/plugins/input/
> # rm libqsimple*
> # rm libqimsw-*
> # exit
> $ qtconfig
> --> It works.
> 
> $ kwrite
> Press Shift+Space
> --> It doesn't work. I can't type i18n words.
> 
> 
> $ rpm -ba scim-qtimm.spec
> plugin.cpp: In function `QUnknownInterface* ucm_instantiate()':
> plugin.cpp:41: error: cannot allocate an object of type `ScimInputContextPlugin'
> plugin.cpp:41: error:   because the following virtual functions are abstract:
> /usr/lib/qt3//include/qinputcontextplugin.h:59: error:  virtual QStringList
> QInputContextPlugin::languages(const QString&)
> /usr/lib/qt3//include/qinputcontextplugin.h:60: error:  virtual QString
> QInputContextPlugin::displayName(const QString&)
> /usr/lib/qt3//include/qinputcontextplugin.h:61: error:  virtual QString
> QInputContextPlugin::description(const QString&)
> --> I can't make it.
> 
I had same compilation error when I was building iiimqcf against 
qt library patched with qt-x11-immodule-unified-qt3.3.2-20040812.diff.

It's simply because QInputContextPlugin class defined following new 
pure virtual functions.

class Q_EXPORT QInputContextPlugin : public QGPlugin
{
    Q_OBJECT
public:
    QInputContextPlugin();
    ~QInputContextPlugin();

    virtual QStringList keys() const = 0;
    virtual QInputContext *create( const QString &key ) = 0;
    // new functions
    virtual QStringList languages( const QString &key ) = 0;
    virtual QString displayName( const QString &key ) = 0;
    virtual QString description( const QString &key ) = 0;

private:
    QInputContextPluginPrivate *d;
};

Thus, uim plugin class has to provide implementation for these methods.

Thanks
Karl


> 
> // Note for packagers
> Add it to %files
> %{_libdir}/qt3/plugins/input/*
> 
> 
> Thanks.
> ___
> Hirosi
> 
> 
> __________________________________________________
> GANBARE! NIPPON!
> Yahoo! JAPAN JOC OFFICIAL INTERNET PORTAL SITE
> http://mail.ganbare-nippon.yahoo.co.jp/
> 
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Thu, 12 Aug 2004 18:39:14 +0000
> From: LiuCougar <liucougar at gmail.com>
> Subject: [immodule-qt] Qt 3.3.3 bugfix version released
> To: immodule-qt at freedesktop.org
> Message-ID: <9558067804081211394505220a at mail.gmail.com>
> Content-Type: text/plain; charset=US-ASCII
> 
> Hi all,
> 
> 12, August trolltech released Qt 3.3.3, a bugfix version.
> 
> Maybe we should also release a unified patch for this latest version.
> 
> Regards,




More information about the immodule-qt mailing list