extragear/multimedia/amarok/src

Jeff Mitchell kde-dev at emailgoeshere.com
Wed Oct 17 19:28:24 CEST 2007


Nikolaj Hald Nielsen wrote:
>> Nikolaj--
>>
>> How about starting a QTimer when the mouse enters over an album of, say,
>> half a second, maybe more, then expand (so long as the time is < the
>> average time it takes to put the mouse pointer on the + and click it).
>> When the mouse leaves the album, it could be instantly collapsed so as
>> to make whatever is below it immediately visible and usable.
>>     
>
> Well, I though about doing something like this, and actually made the
> first prototype with elements that expanded on mouse over. The main
> problem is actually collapsing them again when the mouse leaves.
>
> Expanding is simple, it is triggered (or a timer started) when the
> element gets a mouse hover event. But when do we collapse again? We
> can't just do it when the mouse leaves the head element, as it might
> now hover over one of the body elements or the end element of the same
> album group. Since each element in essence has no idea of which group
> they are part of (they just know how to draw themselves) figuring out
> hen the mouse actually leaves an expanded album is quite difficult
>   
Might it be useful in future situations if there was a way for child
elements to know which group they belong to?  :-)

--Jeff


More information about the Amarok-devel mailing list