grabbing via SPACE/DRAG/SPACE

Gábor Lehel illissius at gmail.com
Sat Feb 4 20:11:34 CET 2006


On 2/4/06, Boudewijn Rempt <boud at valdyas.org> wrote:
> On Saturday 04 February 2006 19:35, Melchior FRANZ wrote:
>
> > For the record: this does still not work. I've meanwhile found out that
> > my old kritarc didn't allow it. When I moved that away, I could get the
> > feature working, *BUT* only when I kept the LMB pressed(!) and pressed
> > the SPACE bar in addition. Only then the Space-Grab feature got activated.
> > And from then on it worked normally. The first time has to happen with
> > pressed LMB.
>
> The problem is, the canvas needs to have focus for this to work, and to give
> it focus, you need to click on it. Otherwise the !@#$% dockers grab keyboard
> focus :-(. I'm not sure how to solve it at this moment.

Install an event filter on qApp (or just the KisView? dunno) and check
whether the widget under the mouse is the canvas, perhaps?
I've already done something like this for amaroK (though that didn't
include mouse movement, only keyboard shortcuts), so if you like and
point me to the code I could give it a shot myself.


More information about the kimageshop mailing list