author | drw <drw> | 2002-12-16 01:55:56 (UTC) |
---|---|---|
committer | drw <drw> | 2002-12-16 01:55:56 (UTC) |
commit | 64bc40080abc56e6bd804dadb44d2510f25f2efa (patch) (unidiff) | |
tree | 20d1840b63dc76608aee6f80bf011811d392fbac /noncore/settings/sysinfo/load.cpp | |
parent | e4057ee7fe74c83e2dc44f8b9870f65da60fc4fa (diff) | |
download | opie-64bc40080abc56e6bd804dadb44d2510f25f2efa.zip opie-64bc40080abc56e6bd804dadb44d2510f25f2efa.tar.gz opie-64bc40080abc56e6bd804dadb44d2510f25f2efa.tar.bz2 |
1. Added RAM disk to storage tab (could someone verify works on Z?) 2. QScrollView for storage tab 3. Removed module detail dialog since it did not provide any useful information 4. Fix compiler warnings 5. Removed unneeded qDebugs
Diffstat (limited to 'noncore/settings/sysinfo/load.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/load.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/sysinfo/load.cpp b/noncore/settings/sysinfo/load.cpp index 900b3d3..d9d7a66 100644 --- a/noncore/settings/sysinfo/load.cpp +++ b/noncore/settings/sysinfo/load.cpp | |||
@@ -119,25 +119,25 @@ Load::Load( QWidget *parent, const char *name, WFlags f ) | |||
119 | userLoad[i] = 0.0; | 119 | userLoad[i] = 0.0; |
120 | systemLoad[i] = 0.0; | 120 | systemLoad[i] = 0.0; |
121 | } | 121 | } |
122 | maxLoad = 1.3; | 122 | maxLoad = 1.3; |
123 | QTimer *timer = new QTimer( this ); | 123 | QTimer *timer = new QTimer( this ); |
124 | connect( timer, SIGNAL(timeout()), SLOT(timeout()) ); | 124 | connect( timer, SIGNAL(timeout()), SLOT(timeout()) ); |
125 | timer->start( 2000 ); | 125 | timer->start( 2000 ); |
126 | gettimeofday( &last, 0 ); | 126 | gettimeofday( &last, 0 ); |
127 | first = TRUE; | 127 | first = TRUE; |
128 | timeout(); | 128 | timeout(); |
129 | } | 129 | } |
130 | 130 | ||
131 | void Load::paintEvent( QPaintEvent *ev ) | 131 | void Load::paintEvent( QPaintEvent * ) |
132 | { | 132 | { |
133 | QPainter p( this ); | 133 | QPainter p( this ); |
134 | 134 | ||
135 | int h = height() - 5; | 135 | int h = height() - 5; |
136 | 136 | ||
137 | int mult = (int)(h / maxLoad); | 137 | int mult = (int)(h / maxLoad); |
138 | 138 | ||
139 | p.setPen( gray ); | 139 | p.setPen( gray ); |
140 | p.drawLine( 0, h - mult, width(), h - mult ); | 140 | p.drawLine( 0, h - mult, width(), h - mult ); |
141 | p.drawText( 0, h - mult, "100" ); | 141 | p.drawText( 0, h - mult, "100" ); |
142 | p.drawText( 0, h, "0" ); | 142 | p.drawText( 0, h, "0" ); |
143 | 143 | ||