Review Request: Adding notify signals to FrameSvgItem
Marco Martin
notmart at gmail.com
Sun Aug 12 10:58:38 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?
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
- Marco
-----------------------------------------------------------
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/20120812/a623d20a/attachment.html>
More information about the Plasma-devel
mailing list