<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:12pt;font-family:Microsoft Sans Serif">
<p>Hi, </p>
<p></p>
<p>I'm using qt4.0.1 gpl'ed QT version for windows and got problems in the below mentioned files using Q3CString, which let the compiler (gcc 3.4.2) fails with </p>
<p></p>
<p>kio\kio\kmimetype.cpp: In member function `virtual QString KFolderType::icon(const KURL&, bool) const':</p>
<p>kio\kio\kmimetype.cpp:634: error: no matching function for call to `Q3ValueList<Q3CString>::append(char[260])'</p>
<p>C:/Qt/4.0.1/include/Qt/../../src/qt3support/tools/q3valuelist.h:172: note: candidates are: Q3ValueListIterator<T> Q3ValueList<T>::append(con</p>
<p>st T&) [with T = Q3CString]</p>
<p></p>
<p>kio\kio\kmimetype.cpp:1109: error: no matching function for call to `KDirNotify_stub::KDirNotify_stub(const char[2], const char[12])'</p>
<p>kio/kio/kdirnotify_stub.h:20: note: candidates are: KDirNotify_stub::KDirNotify_stub(const KDirNotify_stub&)</p>
<p>kio/kio/kdirnotify_stub.h:30: note: KDirNotify_stub::KDirNotify_stub()</p>
<p>kio/kio/kdirnotify_stub.h:24: note: KDirNotify_stub::KDirNotify_stub(const DCOPRef&)</p>
<p>kio/kio/kdirnotify_stub.h:23: note: KDirNotify_stub::KDirNotify_stub(DCOPClient*, const Q3CString&, const Q3CString&)</p>
<p>kio/kio/kdirnotify_stub.h:22: note: KDirNotify_stub::KDirNotify_stub(const Q3CString&, const Q3CString&)</p>
<p>scons: *** [build\kio\kio\kmimetype.o] Error 1</p>
<p></p>
<p><span style="font-weight:600">The QT porting guide suggests general to replace QCString with QByteArray. </span></p>
<p><span style="font-weight:600">Any problems with this patch ? </span></p>
<p></p>
<p><span style="font-weight:600">Regards</span></p>
<p></p>
<p><span style="font-weight:600">Ralf </span></p>
<p><span style="font-weight:600"> </span></p>
<p></p>
<p></p>
<p></p>
<p><span style="font-weight:600">Index: kio/kmimetype.cpp</span></p>
<p><span style="font-weight:600">===================================================================</span></p>
<p><span style="font-weight:600">--- kio/kmimetype.cpp (revision 471903)</span></p>
<p><span style="font-weight:600">+++ kio/kmimetype.cpp (working copy)</span></p>
<p><span style="font-weight:600">@@ -629,7 +629,7 @@</span></p>
<p><span style="font-weight:600"> dp = opendir( QFile::encodeName(_url.path()) );</span></p>
<p><span style="font-weight:600"> if ( dp )</span></p>
<p><span style="font-weight:600"> {</span></p>
<p><span style="font-weight:600">- Q3ValueList<Q3CString> entries;</span></p>
<p><span style="font-weight:600">+ Q3ValueList<QByteArray> entries;</span></p>
<p><span style="font-weight:600"> // Note that readdir isn't guaranteed to return "." and ".." first (#79826)</span></p>
<p><span style="font-weight:600"> ep=readdir( dp ); if ( ep ) entries.append( ep->d_name );</span></p>
<p><span style="font-weight:600"> ep=readdir( dp ); if ( ep ) entries.append( ep->d_name );</span></p>
<p><span style="font-weight:600">@@ -1004,7 +1004,7 @@</span></p>
<p></p>
<p><span style="font-weight:600"> if( cfg.hasKey( "X-KDE-GetActionMenu" )) {</span></p>
<p><span style="font-weight:600"> QString dcopcall = cfg.readEntry( "X-KDE-GetActionMenu" );</span></p>
<p><span style="font-weight:600">- const Q3CString app = dcopcall.section(' ', 0,0).toUtf8();</span></p>
<p><span style="font-weight:600">+ const QByteArray app = dcopcall.section(' ', 0,0).toUtf8();</span></p>
<p></p>
<p><span style="font-weight:600"> QByteArray dataToSend;</span></p>
<p><span style="font-weight:600"> QDataStream dataStream(&dataToSend, QIODevice::WriteOnly);</span></p>
<p></p>
<p>+++ kio/kdirnotify_stub.h (working copy)</p>
<p>@@ -13,14 +13,11 @@</p>
<p> #include <dcopobject.h></p>
<p> #include <kurl.h></p>
<p></p>
<p>-class Q3CString;</p>
<p>-</p>
<p>-</p>
<p> class KIO_EXPORT KDirNotify_stub : virtual public DCOPStub</p>
<p> {</p>
<p> public:</p>
<p>- KDirNotify_stub( const Q3CString& app, const Q3CString& id );</p>
<p>- KDirNotify_stub( DCOPClient* client, const Q3CString& app, const Q3CString& id );</p>
<p>+ KDirNotify_stub( const QByteArray& app, const QByteArray& id );</p>
<p>+ KDirNotify_stub( DCOPClient* client, const QByteArray& app, const QByteArray& id );</p>
<p> explicit KDirNotify_stub( const DCOPRef& ref );</p>
<p> virtual ASYNC FilesAdded( const KURL& directory );</p>
<p> virtual ASYNC FilesRemoved( const KURL::List& fileList );</p>
<p></p>
<p></p>
<p>Index: kio/kdirnotify_stub.cpp</p>
<p>===================================================================</p>
<p>--- kio/kdirnotify_stub.cpp (revision 471903)</p>
<p>+++ kio/kdirnotify_stub.cpp (working copy)</p>
<p>@@ -29,15 +29,13 @@</p>
<p></p>
<p> #include <kdatastream.h></p>
<p></p>
<p>-#include <q3cstring.h></p>
<p></p>
<p>-</p>
<p>-KDirNotify_stub::KDirNotify_stub( const Q3CString& app, const Q3CString& obj )</p>
<p>+KDirNotify_stub::KDirNotify_stub( const QByteArray& app, const QByteArray& obj )</p>
<p> : DCOPStub( app, obj )</p>
<p> {</p>
<p> }</p>
<p></p>
<p>-KDirNotify_stub::KDirNotify_stub( DCOPClient* client, const Q3CString& app, const Q3CString& obj )</p>
<p>+KDirNotify_stub::KDirNotify_stub( DCOPClient* client, const QByteArray& app, const QByteArray& obj )</p>
<p> : DCOPStub( client, app, obj )</p>
<p> {</p>
<p> }</p>
<p></p>
<p></p>
<p></p>
</body></html>