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

List:       kde-panel-devel
Subject:    Re: A folderview QGraphicsView related bug
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2012-05-21 21:02:00
Message-ID: 4290162.ONjRla1fyp () freedom
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Friday, May 18, 2012 22:28:47 Ignat Semenov wrote:
> Now the questions are:
> 1)Why do we need to iterate through the views like this? Anything more
> elegant in the Plasma library?

i don't know if it is more elegant in the implementation, but there is 
QGraphicsView *Plasma::viewFor(const QGraphicsItem *item); (it is declared in 
plasma.h, so it could already be visible to the code as that is a commonly 
included header in libplasma. otherwise #include <Plasma/Plasma>)

> 2)Any ideas when underMouse() might fail like this when not dragging?

if i were to guess (and that's all this is) it would be because when the views 
are checked, the mouse is over a different window or the relevant x event 
hasn't been processed yet.

-- 
Aaron Seigo
["signature.asc" (application/pgp-signature)]

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel


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

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