khtml's find, KFind or KComboBox
Carsten Pfeiffer
carpdjih at mailbox.tu-berlin.de
Wed Nov 20 22:41:28 GMT 2002
-----BEGIN PGP SIGNED MESSAGE-----
On Wednesday 20 November 2002 23:29, David Faure wrote:
> > > But when the last (and also current) item is removed, then the
> > > "current" index should be adjusted.
>
> That's precisely what doesn't happen.
>
> konqueror: count=2 item=word1 currentItem()=1 text(0)=word2
> konqueror: removeItem 1
> konqueror: after removeItem: currentItem()=1 currentText()=
So the lineedit is empty? currentItem == 1 seems wrong as well (after
removing, count() should be 1, so currentItem must be 0.
QString QComboBox::currentText() const
{
if ( d->ed )
return d->ed->text();
[read-only mode snipped]
}
Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----
iQEVAwUBPdwPmKWgYMJuwmZtAQH4GAf/eI6Ijr9UDOx77NLnwngTdP4hPUbLqHxf
HW3ZZgpvddNTIAI2DDgETxtiwgIhIVaMGCI65m2AaOY76//eCAU6EMtjDbUzB7Dm
N9XU8580BUPKsobZ5CuXh7t7hSpVUAnqtyFW+IYEd6bqz20lKQNoRQ5XC2WJzWhs
CCapa5H1OCiyyxeUolAM5Pmp4FlEoIep39jQwK9MtvKMPBAtoATL+zsM97nGjsSg
BJjHYy16ZeoA/yA7/iYB4JlZeZQUNDvxCdzgeuTXMkQoUO7J7TjpebuVf8rl/Djw
73o5k0FegnrRQBtCPWLCA3QrbxOUpXmbA1Wo8YC12NibXKWu1eKySw==
=2vSA
-----END PGP SIGNATURE-----
More information about the kfm-devel
mailing list