code completion

F@lk Brettschneider gigafalk at yahoo.com
Mon Feb 11 10:05:04 UTC 2002


Daniel Köbbing wrote:
> 
> Hallo zusammen,
> 
> Da ich keine Möglichkeit eines "commit" habe, möchte ich euch eine kleine
> Änderung in ceditwidget.cpp auf diesem Weg zukommen lassen.
> 
> #if QT_VERSION < 300
>     QRegExp rx(QString("[\\s:;,+-*/]") + prefix +
> "[a-zA-Z0-9_]+[\\s:;,+-*/]");
> #else
>     QRegExp rx(QString("\\b") + prefix + "[a-zA-Z0-9_]+\\b");
> #endif
>     while( (pos = rx.match(text, idx, &len)) != -1 ){
> #if QT_VERSION < 300
>         QString word = text.mid( pos+1, len-2 );
> #else
>         QString word = text.mid( pos, len );
> #endif
> 
> in der Methode getAllWords lässt expandText auch unter QT 2.3.1
> laufen.
(Translation: Daniel made basic codecompletion work with KDE 2 as well.)

Thanks a lot. I applied it to CVS and also your name to the AUTHOR file
under the patches section.

Cheers,F at lk

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





More information about the KDevelop-devel mailing list