[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KDE3 thai word break: KLibLoader --> QLibrary
From:       "Pattara Kiatisevi \(list\)" <pattara-list () mm ! co ! th>
Date:       2007-09-29 7:32:21
Message-ID: 46FDFF85.4030608 () mm ! co ! th
[Download RAW message or body]

Pattara Kiatisevi (list) wrote:
[...]
>
>
> And for Qt4/KDE4, isn't it better to use QLibrary::resolve("thai", 0, 
> "th_brk") so that it will go for libthai.so.0
> directly, eliminating the need to have libthai.so (which is normally 
> in development package)?
>
> Patch for KDE4 (tested against KDE4beta2) attached.

A similar patch for Qt4 (tested against the latest qt-copy). (bascially 
just added the library version number "0".

Thank you very much,
Pattara

Index: src/gui/text/qscriptengine.cpp
===================================================================
--- src/gui/text/qscriptengine.cpp	(revision 718597)
+++ src/gui/text/qscriptengine.cpp	(working copy)
@@ -3488,7 +3488,7 @@
 #ifndef QT_NO_LIBRARY
     /* load libthai dynamically */
     if (!th_brk && thaiCodec) {
-        th_brk = (th_brk_def)QLibrary::resolve(QLatin1String("thai"), "th_brk");
+        th_brk = (th_brk_def)QLibrary::resolve(QLatin1String("thai"), 0, "th_brk");
         if (!th_brk)
             thaiCodec = 0;
     }


 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic