kdevelop 2.1 patch (codecompletion)
W. Tasin
tasin at fhm.edu
Fri Feb 15 15:29:02 UTC 2002
W. Tasin wrote:
> Hi together,
>
> kdevelop 2.1 (cvs) isn't compilable for KDE 2, yet, due to the fact that
> QRegExp::exactMatch, QRegExp::cap and QRegExp::pos doesn't exist in qt 2.
s/doesn't/don't/ *g*
>
> Please remember this!
>
> Ciao
>
> Walter
Unfortunately there are some other methods too, like
QString::ends_with() and QStringList::pop_front()....
Ciao
Walter
PS: Robe', please use only the methods you can find in the QT 2
documentation, ti preeegoooooo..... ;-)
PPS: I created now shell methods with conditional compilage, like e.g.:
bool CppCodeCompletion::check_end(const QString &str, const QString &suffix)
{
#if QT_VERSION >=300
return str.ends_with(suffix);
#else
return (str.right(suffix.length()) == suffix);
#endif
}
void CppCodeCompletion::popFrontStringList(QStringList &slist)
{
#if QT_VERSION >=300
slist.pop_front();
#else
StringList::Iterator it;
if ((it=slist.begin())!=slist.end())
slist.remove(it);
#endif
}
This is already in the CVS!!
Roberto, after the last test I will pass you my changements to the
cvs... so you can work with the actual version.
--
oohhh sveglia.... il mondo e' ammalato, ma x colpa di chi.........
(Zucchero)
:-------W._Tasin,_FB_04,_FHM-------------------PGP-KeyID:0x7961A645---:
<Key-Fingerprint: 1610 835F 0080 32F4 6140 6CF7 A7D0 44CD 7961A645>
<http://wwwkeys.pgp.net:11371/pks/lookup?op=index&search=0x7961A645&fingerprint=on>
More information about the KDevelop-devel
mailing list