plasma data engine / property loop
Kevin Krammer
krammer at kde.org
Sun Jan 15 10:16:22 GMT 2017
Hi Martin,
On Sunday, 2017-01-15, 00:04:23, Martin Koller wrote:
> Hi,
>
> trying to fix the systemload applet (and new to QML), how can one solve the
> problem: - a data engine delivers the number of CPU cores
> - depending on this number, I need to separately "connect" to additional
> sources in this data engine
>
> This creates a property loop.
> dataSources array depends on cores, but cores is set from dataSources
How is cores set from dataSources?
Does the source() function below write to cores?
Cheers,
Kevin
> E.g. (pseudo code)
>
> property int cores: 0
> dataSources: sources()
>
> function sources() { ... create array depending on property "cores", like
> "cpu/cpu<core index>/nice" ... }
>
> onNewData: { cores = data.value }
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde/attachments/20170115/34b558b2/attachment.sig>
More information about the kde
mailing list