Diffstat (limited to 'noncore/settings/sysinfo/memory.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/memory.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/noncore/settings/sysinfo/memory.cpp b/noncore/settings/sysinfo/memory.cpp index 781f0df..30d42d5 100644 --- a/noncore/settings/sysinfo/memory.cpp +++ b/noncore/settings/sysinfo/memory.cpp | |||
@@ -16,21 +16,23 @@ | |||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include <qlabel.h> | 21 | #include <qlabel.h> |
22 | #include <qtimer.h> | ||
23 | #include <qfile.h> | 22 | #include <qfile.h> |
24 | #include <qtextstream.h> | ||
25 | #include <qlayout.h> | 23 | #include <qlayout.h> |
24 | #include <qtextstream.h> | ||
25 | #include <qtimer.h> | ||
26 | #include <qwhatsthis.h> | ||
27 | |||
26 | #include "graph.h" | 28 | #include "graph.h" |
27 | #include "memory.h" | 29 | #include "memory.h" |
28 | 30 | ||
29 | MemoryInfo::MemoryInfo( QWidget *parent, const char *name, WFlags f ) | 31 | MemoryInfo::MemoryInfo( QWidget *parent, const char *name, WFlags f ) |
30 | : QWidget( parent, name, f ) | 32 | : QWidget( parent, name, WStyle_ContextHelp ) |
31 | { | 33 | { |
32 | QVBoxLayout *vb = new QVBoxLayout( this, 5 ); | 34 | QVBoxLayout *vb = new QVBoxLayout( this, 5 ); |
33 | 35 | ||
34 | totalMem = new QLabel( this ); | 36 | totalMem = new QLabel( this ); |
35 | vb->addWidget( totalMem ); | 37 | vb->addWidget( totalMem ); |
36 | 38 | ||
@@ -48,12 +50,14 @@ MemoryInfo::MemoryInfo( QWidget *parent, const char *name, WFlags f ) | |||
48 | vb->addStretch( 1 ); | 50 | vb->addStretch( 1 ); |
49 | updateData(); | 51 | updateData(); |
50 | 52 | ||
51 | QTimer *t = new QTimer( this ); | 53 | QTimer *t = new QTimer( this ); |
52 | connect( t, SIGNAL( timeout() ), this, SLOT( updateData() ) ); | 54 | connect( t, SIGNAL( timeout() ), this, SLOT( updateData() ) ); |
53 | t->start( 5000 ); | 55 | t->start( 5000 ); |
56 | |||
57 | QWhatsThis::add( this, tr( "This page shows how memory (i.e. RAM) is being allocated on your handheld device.\nMemory is categorized as follows:\n\n1. Used - memory used to by Opie and any running applications.\n2. Buffers - temporary storage used to improve performance\n3. Cached - information that has recently been used, but has not been freed yet.\n4. Free - memory not currently used by Opie or any running applications." ) ); | ||
54 | } | 58 | } |
55 | 59 | ||
56 | MemoryInfo::~MemoryInfo() | 60 | MemoryInfo::~MemoryInfo() |
57 | { | 61 | { |
58 | delete data; | 62 | delete data; |
59 | } | 63 | } |