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

List:       kde-devel
Subject:    Re: Finding screen coordinates in kate
From:       Andras Mantia <amantia () virtualartisans ! com>
Date:       2003-02-05 22:06:47
[Download RAW message or body]

On 2003. February 05., Wednesday 23:21, Adriaan de Groot wrote:
> Is it possible to discover the screen coordinates of the cursor in Kate?
> For a plugin I'm writing I'd like to do a KPassivePopup near the cursor,
> and for that I'll (probably?) need the screen coordinates of the cursor.

QPoint globalPos = w->mapToGlobal(w->viewCursorIf->cursorCoordinates());

Where w is the widget which contains the Kate part, viewCursorIf is the 
KTextEditor::ViewCursorInterface.

Andras

-- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

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