Diffstat (limited to 'noncore/settings/sysinfo/memory.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/memory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/sysinfo/memory.cpp b/noncore/settings/sysinfo/memory.cpp index 30d42d5..4f612d8 100644 --- a/noncore/settings/sysinfo/memory.cpp +++ b/noncore/settings/sysinfo/memory.cpp | |||
@@ -7,49 +7,49 @@ | |||
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
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 <qfile.h> | 22 | #include <qfile.h> |
23 | #include <qlayout.h> | 23 | #include <qlayout.h> |
24 | #include <qtextstream.h> | 24 | #include <qtextstream.h> |
25 | #include <qtimer.h> | 25 | #include <qtimer.h> |
26 | #include <qwhatsthis.h> | 26 | #include <qwhatsthis.h> |
27 | 27 | ||
28 | #include "graph.h" | 28 | #include "graph.h" |
29 | #include "memory.h" | 29 | #include "memory.h" |
30 | 30 | ||
31 | MemoryInfo::MemoryInfo( QWidget *parent, const char *name, WFlags f ) | 31 | MemoryInfo::MemoryInfo( QWidget *parent, const char *name, WFlags ) |
32 | : QWidget( parent, name, WStyle_ContextHelp ) | 32 | : QWidget( parent, name, WStyle_ContextHelp ) |
33 | { | 33 | { |
34 | QVBoxLayout *vb = new QVBoxLayout( this, 5 ); | 34 | QVBoxLayout *vb = new QVBoxLayout( this, 5 ); |
35 | 35 | ||
36 | totalMem = new QLabel( this ); | 36 | totalMem = new QLabel( this ); |
37 | vb->addWidget( totalMem ); | 37 | vb->addWidget( totalMem ); |
38 | 38 | ||
39 | data = new GraphData(); | 39 | data = new GraphData(); |
40 | // graph = new PieGraph( this ); | 40 | // graph = new PieGraph( this ); |
41 | graph = new BarGraph( this ); | 41 | graph = new BarGraph( this ); |
42 | graph->setFrameStyle( QFrame::Panel | QFrame::Sunken ); | 42 | graph->setFrameStyle( QFrame::Panel | QFrame::Sunken ); |
43 | vb->addWidget( graph, 1 ); | 43 | vb->addWidget( graph, 1 ); |
44 | graph->setData( data ); | 44 | graph->setData( data ); |
45 | 45 | ||
46 | legend = new GraphLegend( this ); | 46 | legend = new GraphLegend( this ); |
47 | vb->addWidget( legend ); | 47 | vb->addWidget( legend ); |
48 | legend->setData( data ); | 48 | legend->setData( data ); |
49 | 49 | ||
50 | vb->addStretch( 1 ); | 50 | vb->addStretch( 1 ); |
51 | updateData(); | 51 | updateData(); |
52 | 52 | ||
53 | QTimer *t = new QTimer( this ); | 53 | QTimer *t = new QTimer( this ); |
54 | connect( t, SIGNAL( timeout() ), this, SLOT( updateData() ) ); | 54 | connect( t, SIGNAL( timeout() ), this, SLOT( updateData() ) ); |
55 | t->start( 5000 ); | 55 | t->start( 5000 ); |