Re: plasma data engine / property loop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: This is a digitally signed message part.


[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux