From kde-core-devel Tue Oct 09 23:19:51 2001 From: Rik Hemsley Date: Tue, 09 Oct 2001 23:19:51 +0000 To: kde-core-devel Subject: Re: KTextEditor X-MARC-Message: https://marc.info/?l=kde-core-devel&m=100266964227361 #if Daniel Naber > On Tuesday 09 October 2001 23:17, Christoph Cullmann wrote: > > > my first draft of the new lib is in the CVS > > (yes gis, with cursor ;) > > > > look at kdelibs/interfaces/ktexteditor > > As some functions take line/col, what about a function that calculates the > line/col for an absolute position (not just the current one)? Like this: > > virtual void position ( int absolute, int *line, int *col ) = 0; Or: QPoint cursorPosition(unsigned long absoluteCursorPosition) = 0; Rik