plasma data engine / property loop

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

 



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

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 }

-- 
Best regards/Schöne Grüße

Martin
A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\                        - against proprietary attachments

Geschenkideen, Accessoires, Kulinarisches: www.lillehus.at




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