Review Request: Adding notify signals to FrameSvgItem
Christoph Feck
christoph at maxiom.de
Tue Aug 21 20:08:15 UTC 2012
> On Aug. 12, 2012, 10:41 a.m., Christoph Feck wrote:
> > As I understand it, the notify system is for attributes, where the object changes the value _itself_ (e.g. in response to user interaction), as opposed to where the application changed the value.
> >
> > In that light, an imagePathChanged() would not make sense, because the path cannot change, except if the application changes it.
> >
> > What am I missing?
>
> Marco Martin wrote:
> the notify signal, should be for all properties that can change run time, no matter who is changing it (and of course the object itself is able to know in any way when the property changes to be able to reliably signal it).
>
> the use case is property binding: if you have many classes that are binded to a property, you want all of them immediately automatically updated with the new property value.
>
> an example that doesn't necessary make sense per se but exemplifies, 3 instances of Text {text: framesvgItem.imagePath} should always have the"right" text
Erm, what I actually had been missing is the fact, that this commit is for QML bindings, not for the actual FrameSvg class in kdelibs/plasma... Sorry for the noise.
- Christoph
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/105987/#review17265
-----------------------------------------------------------
On Aug. 11, 2012, 10:39 p.m., Luis Gabriel Lima wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/105987/
> -----------------------------------------------------------
>
> (Updated Aug. 11, 2012, 10:39 p.m.)
>
>
> Review request for Plasma and Marco Martin.
>
>
> Description
> -------
>
> When we are using a QML element, we should be able to keep track of its property changes.
>
>
> Diffs
> -----
>
> plasma/declarativeimports/core/framesvgitem.h 7baf0cf
> plasma/declarativeimports/core/framesvgitem.cpp 02c9d19
>
> Diff: http://git.reviewboard.kde.org/r/105987/diff/
>
>
> Testing
> -------
>
>
> Thanks,
>
> Luis Gabriel Lima
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20120821/a1fb3b49/attachment-0001.html>
More information about the Plasma-devel
mailing list