--===============0086186248== Content-Type: multipart/signed; boundary="nextPart1466341.y7tAPiCz88"; protocol="application/pgp-signature"; micalg=pgp-sha1 --nextPart1466341.y7tAPiCz88 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 18 September 2007 07:30:38 Thorsten Zachmann wrote: > The problem that kword was crashing is that kword also uses the key > press event of the left mouse press to open a context menu. This is > wrong as the path tool no longer receives the mouse release event for > the mouse press. I tried to fix this yesterday in kword by checking if > the mouse event was already accepted, but it was not possible to do so > as all the tools accepted the mouse press by default. So the correct > solution to the problem is to not accept the left mouse press in all > the tools that do not use it. Yes, that sounds like a good solution. One note; Qt delivers an event to any widget with it already excepted. So=20 you only ever have to call ignore() (which the default implementation=20 does). Also note that this actually is documented in=20 KoTool::mousePressEvent() ;) So, the real problem is that there are some tools that actually forget to=20 call e->ignore(). I fixed the text tool and the vector tool as well as=20 adjust kword to your suggestion. I guess we should look for more bugs in the tools. =2D-=20 Thomas Zander --nextPart1466341.y7tAPiCz88 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBG86kvCojCW6H2z/QRApabAJ9WlvyrqO3lhHICuCkHQrTZYNcUEwCgy9Rt EqV/xXBT4VdpQ0va3ePQHj0= =JeZZ -----END PGP SIGNATURE----- --nextPart1466341.y7tAPiCz88-- --===============0086186248== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel --===============0086186248==--