projects
/
quick-widgets
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added ability to add widgets from command-line.
[quick-widgets]
/
plugins
/
qmlprocess
/
meminfo.qml
1
import Qt 4.7
2
import qmlprocess 1.0
3
//import "content"
4
5
Column {
6
id: col
7
spacing: 2
8
width: 210
9
height: childrenRect.height
10
11
ProcessLabel {
12
label: "Active:"
13
width: parent.width;
14
color: "grey"
15
command: "sh -c \"cat /proc/meminfo | /bin/grep 'Active:'\""
16
interval_in_sec: 5
17
}
18
19
ProcessLabel {
20
label: "Free:"
21
width: parent.width
22
color: "black"
23
interval_in_sec: 10
24
command: "sh -c \"cat /proc/meminfo | /bin/grep 'MemFree:'\""
25
}
26
27
ProcessLabel {
28
label: "Total:"
29
width: parent.width
30
color: "#222222"
31
interval_in_sec: 0
32
command: "sh -c \"cat /proc/meminfo | /bin/grep 'MemTotal:'\""
33
}
34
}
35