Re: [Development] Behaviour change of opacity property in QtQuick 2.0

2012-07-19 Thread Alan Alpert
On Thu, 19 Jul 2012 11:06:29 ext Sven Anderson wrote: > On 19.07.2012 03:29, Alan Alpert wrote: > > On Wed, 18 Jul 2012 19:00:01 ext Rafael Brandao wrote: > > > > There's a new enabled property which also prevents mouse input. It also > > affects keyboard focus, but if you aren't using keyboard fo

Re: [Development] Behaviour change of opacity property in QtQuick 2.0

2012-07-19 Thread Sven Anderson
On 19.07.2012 03:29, Alan Alpert wrote: > On Wed, 18 Jul 2012 19:00:01 ext Rafael Brandao wrote: > > There's a new enabled property which also prevents mouse input. It also > affects > keyboard focus, but if you aren't using keyboard focus you can bind enabled: > opacity > 0 and get effectively th

Re: [Development] Behaviour change of opacity property in QtQuick 2.0

2012-07-18 Thread Alan Alpert
On Wed, 18 Jul 2012 19:00:01 ext Rafael Brandao wrote: > I've just figured out this issue on Snowshoe. > The change is not that simple. Assuming "visible: opacity > 0" will make > the property rely on this binding, but other entities may change it > manually what would break that binding, and we re

Re: [Development] Behaviour change of opacity property in QtQuick 2.0

2012-07-18 Thread Alexis Menard
On Wed, Jul 18, 2012 at 10:08 PM, Alan Alpert wrote: > On Wed, 18 Jul 2012 13:47:36 ext Nils Jeisecke wrote: >> Hi, >> >> In QtQuick 1 an element with opacity == 0 is treated as invisible >> (e.g. it won't see mouse events). >> This has changed in QtQuick 2.0 which breaks existing code that >> ass

Re: [Development] Behaviour change of opacity property in QtQuick 2.0

2012-07-18 Thread Alan Alpert
On Wed, 18 Jul 2012 13:47:36 ext Nils Jeisecke wrote: > Hi, > > In QtQuick 1 an element with opacity == 0 is treated as invisible > (e.g. it won't see mouse events). > This has changed in QtQuick 2.0 which breaks existing code that > assumes that opacity == 0 means !visible. > > This example illu

Re: [Development] Behaviour change of opacity property in QtQuick 2.0

2012-07-18 Thread Rafael Brandao
I've just figured out this issue on Snowshoe. The change is not that simple. Assuming "visible: opacity > 0" will make the property rely on this binding, but other entities may change it manually what would break that binding, and we really did that. :-( On Wed, Jul 18, 2012 at 12:59 PM, Nils Jeis

Re: [Development] Behaviour change of opacity property in QtQuick 2.0

2012-07-18 Thread Nils Jeisecke
> Apparently, it was intentional: QTBUG-19193, and commit > 9bf96613c1be7d4df7132a9c3c9ac1a8740f698f. It would be nice to know what > the arguments for changing the behaviour were... Ok, thanks. I should have checked the git log. Sorry. However this change makes QtQuick porting even more complica

Re: [Development] Behaviour change of opacity property in QtQuick 2.0

2012-07-18 Thread Kim M. Kalland
On 18.07.2012 13:47, ext Nils Jeisecke wrote: > Hi, > > In QtQuick 1 an element with opacity == 0 is treated as invisible > (e.g. it won't see mouse events). > This has changed in QtQuick 2.0 which breaks existing code that > assumes that opacity == 0 means !visible. > > This example illustrates th

[Development] Behaviour change of opacity property in QtQuick 2.0

2012-07-18 Thread Nils Jeisecke
Hi, In QtQuick 1 an element with opacity == 0 is treated as invisible (e.g. it won't see mouse events). This has changed in QtQuick 2.0 which breaks existing code that assumes that opacity == 0 means !visible. This example illustrates the change. A mouse click will print: QtQuick 1.1: "CLICKED A"