[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: QLineEdit
From:       Mickael Marchand <marchand () kde ! org>
Date:       2002-02-19 18:51:34
[Download RAW message or body]

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

after some investigation , it seems the problem is due to validateAndSet()
it contains a deselect() which does not look really usefull ;p
it works here, someone try it elsewhere ?

cheers,
Mik

Index: qlineedit.cpp
===================================================================
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 != text ) {



- --
Mickael Marchand
Engineer student, Ecole des Mines de Douai - France
KDE Developer, http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8cp63yOYzc4nQ8j0RAi88AKCXH/b5qy/cgI1dSycJIZcuwJVdTwCgk3DV
Wtibh55LyqhvPPym9carkZc=
=Wb8G
-----END PGP SIGNATURE-----
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic