From kde-core-devel Tue Feb 19 20:55:36 2002 From: Scott Wheeler Date: Tue, 19 Feb 2002 20:55:36 +0000 To: kde-core-devel Subject: Re: QLineEdit X-MARC-Message: https://marc.info/?l=kde-core-devel&m=101415220808003 No, that didn't do it for me. I'm curious where you tracked that from, t= he=20 only function that it's used for in qlineedit.cpp is insert(). I'll keep= =20 looking too. -Scott On Tuesday 19 February 2002 01:51 pm, Mickael Marchand wrote: > after some investigation , it seems the problem is due to validateAndSe= t() > it contains a deselect() which does not look really usefull ;p > it works here, someone try it elsewhere ? > > cheers, > Mik > > Index: qlineedit.cpp > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /home/kde/qt-copy/src/widgets/qlineedit.cpp,v > retrieving revision 1.40 > diff -u -3 -p -r1.40 qlineedit.cpp > --- qlineedit.cpp 2002/01/26 20:49:26 1.40 > +++ qlineedit.cpp 2002/02/19 18:49:59 > @@ -1777,7 +1777,7 @@ bool QLineEdit::validateAndSet( const QS > d->cursor->setIndex( d->parag->length() - 1 ); > if ( hasFocus() ) > setMicroFocusHint( d->cursor->x() - d->offset, > d->cursor->y(), 0, d->cursor->parag()->rect().height(), TRUE ); > - deselect(); > + //deselect(); > update(); > d->cursor->setIndex( newPos ); // put the cursor back where= its > meant to be before emitting the signal > if ( oldText !=3D text ) {