--===============1774157155== Content-Type: multipart/signed; boundary="nextPart1561309.AtGHoc0YjE"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart1561309.AtGHoc0YjE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 10 Oct 2007 05:29:34 am Anders Lund wrote: > Who is responsible for emitting this signal? > > Because I connected to it, but never receive it. > > Code (kate docwordcompletion plugin): > > connect( d->liRange->primaryNotifier(), > SIGNAL(caretExitedRange(KTextEditor::SmartRange*, KTextEditor::View*)), > this, SLOT(lastInsertedRangeExited(KTextEditor::SmartRange*, > KTextEditor::View*)) ); > > When a new directional completion is started, I call > > KTextEditor::SmartInterface *si =3D > qobject_cast( m_view->document() ); > if ( si ) > si->addHighlightToView( m_view, d->liRange, true ); > > lastInsertedRangeExited does: > > KTextEditor::SmartInterface *si =3D > qobject_cast( m_view->document() ); > if ( si ) > si->removeHighlightFromView( m_view, d->liRange ); > > But that never happens, as the signal is never received. > > Shouldn't the View implementation emit the signal? Grepping around in the > KTextEditor folder doesn't reveal it being submitted from anywhere (nor > does grepping in kdelibs/kate)... That sounds like something I planned but didn't implement yet. It should b= e=20 triggered by the view, I think you'll find I did it indirectly (via methods= =20 in the KateSmartCursor) for other signals. I'm working on getting my dev environment back online but it's taking some= =20 time. Cheers, Hamish --nextPart1561309.AtGHoc0YjE Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHDOgJH8BtnSmIlUYRAtKqAKCf/tqS9eUehgFsNekLFqKFHm2HxQCg08Im s2Ar4Y5WnPza+9ZgVVaOadw= =RPXD -----END PGP SIGNATURE----- --nextPart1561309.AtGHoc0YjE-- --===============1774157155== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ KTextEditor-Devel mailing list KTextEditor-Devel@kde.org https://mail.kde.org/mailman/listinfo/ktexteditor-devel --===============1774157155==--