[Kde-windows] Q3CString versus QByteArray

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Thu Oct 20 21:21:18 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ralf Habacker schrieb:

> Hi,
> 
> 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
> 
> kio\kio\kmimetype.cpp: In member function `virtual QString
> KFolderType::icon(const KURL&, bool) const':
> 
> kio\kio\kmimetype.cpp:634: error: no matching function for call to
> `Q3ValueList<Q3CString>::append(char[260])'
> 
> C:/Qt/4.0.1/include/Qt/../../src/qt3support/tools/q3valuelist.h:172:
> note: candidates are: Q3ValueListIterator<T> Q3ValueList<T>::append(con
> 
> st T&) [with T = Q3CString]
> 
> kio\kio\kmimetype.cpp:1109: error: no matching function for call to
> `KDirNotify_stub::KDirNotify_stub(const char[2], const char[12])'
> 
> kio/kio/kdirnotify_stub.h:20: note: candidates are:
> KDirNotify_stub::KDirNotify_stub(const KDirNotify_stub&)
> 
> kio/kio/kdirnotify_stub.h:30: note: KDirNotify_stub::KDirNotify_stub()
> 
> kio/kio/kdirnotify_stub.h:24: note:
> KDirNotify_stub::KDirNotify_stub(const DCOPRef&)
> 
> kio/kio/kdirnotify_stub.h:23: note:
> KDirNotify_stub::KDirNotify_stub(DCOPClient*, const Q3CString&, const
> Q3CString&)
> 
> kio/kio/kdirnotify_stub.h:22: note:
> KDirNotify_stub::KDirNotify_stub(const Q3CString&, const Q3CString&)
> 
> scons: *** [build\kio\kio\kmimetype.o] Error 1
> 
> The QT porting guide suggests general to replace QCString with QByteArray.
> 
> Any problems with this patch ?
I don't see any problems with the patch because QByteArray is the new
QCString for Qt4 and the official doc also recommend this.

My 2 cents,
Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFDV+4unNKwkgf+zVMRAnv+AKCCjV9XxGsVWBEzCchCz7BXWIwNYACfVFJz
/HUKDkhJhCxkcq3BtRNimHE=
=3OIe
-----END PGP SIGNATURE-----



More information about the Kde-windows mailing list