summaryrefslogtreecommitdiff
path: root/noncore/settings/sysinfo/sysinfo.cpp
Unidiff
Diffstat (limited to 'noncore/settings/sysinfo/sysinfo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/sysinfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/settings/sysinfo/sysinfo.cpp b/noncore/settings/sysinfo/sysinfo.cpp
index 5f7b527..fda6352 100644
--- a/noncore/settings/sysinfo/sysinfo.cpp
+++ b/noncore/settings/sysinfo/sysinfo.cpp
@@ -18,24 +18,25 @@
18** 18**
19********************************************************************** 19**********************************************************************
20** 20**
21** Enhancements by: Dan Williams, <williamsdr@acm.org> 21** Enhancements by: Dan Williams, <williamsdr@acm.org>
22** 22**
23**********************************************************************/ 23**********************************************************************/
24 24
25#include "memory.h" 25#include "memory.h"
26#include "load.h" 26#include "load.h"
27#include "storage.h" 27#include "storage.h"
28#include "processinfo.h" 28#include "processinfo.h"
29#include "modulesinfo.h" 29#include "modulesinfo.h"
30#include "benchmarkinfo.h"
30#include "versioninfo.h" 31#include "versioninfo.h"
31#include "sysinfo.h" 32#include "sysinfo.h"
32 33
33#include <opie2/otabwidget.h> 34#include <opie2/otabwidget.h>
34 35
35#include <qpe/config.h> 36#include <qpe/config.h>
36#include <qpe/resource.h> 37#include <qpe/resource.h>
37 38
38#include <qlayout.h> 39#include <qlayout.h>
39 40
40SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags ) 41SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags )
41 : QWidget( parent, name, WStyle_ContextHelp ) 42 : QWidget( parent, name, WStyle_ContextHelp )
@@ -43,28 +44,30 @@ SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags )
43 setIcon( Resource::loadPixmap( "system_icon" ) ); 44 setIcon( Resource::loadPixmap( "system_icon" ) );
44 setCaption( tr("System Info") ); 45 setCaption( tr("System Info") );
45 46
46 resize( 220, 180 ); 47 resize( 220, 180 );
47 48
48 Config config( "qpe" ); 49 Config config( "qpe" );
49 config.setGroup( "Appearance" ); 50 config.setGroup( "Appearance" );
50 bool advanced = config.readBoolEntry( "Advanced", TRUE ); 51 bool advanced = config.readBoolEntry( "Advanced", TRUE );
51 52
52 QVBoxLayout *lay = new QVBoxLayout( this ); 53 QVBoxLayout *lay = new QVBoxLayout( this );
53 OTabWidget *tab = new OTabWidget( this, "tabwidget", OTabWidget::Global ); 54 OTabWidget *tab = new OTabWidget( this, "tabwidget", OTabWidget::Global );
54 lay->addWidget( tab ); 55 lay->addWidget( tab );
56
55 tab->addTab( new MemoryInfo( tab ), "sysinfo/memorytabicon", tr("Memory") ); 57 tab->addTab( new MemoryInfo( tab ), "sysinfo/memorytabicon", tr("Memory") );
56#if defined(_OS_LINUX_) || defined(Q_OS_LINUX) 58#if defined(_OS_LINUX_) || defined(Q_OS_LINUX)
57 tab->addTab( new FileSysInfo( tab ), "sysinfo/storagetabicon", tr("Storage") ); 59 tab->addTab( new FileSysInfo( tab ), "sysinfo/storagetabicon", tr("Storage") );
58#endif 60#endif
59 tab->addTab( new LoadInfo( tab ), "sysinfo/cputabicon", tr("CPU") ); 61 tab->addTab( new LoadInfo( tab ), "sysinfo/cputabicon", tr("CPU") );
60 if ( advanced ) 62 if ( advanced )
61 { 63 {
62 tab->addTab( new ProcessInfo( tab ), "sysinfo/processtabicon", tr("Process") ); 64 tab->addTab( new ProcessInfo( tab ), "sysinfo/processtabicon", tr("Process") );
63 tab->addTab( new ModulesInfo( tab ), "sysinfo/moduletabicon", tr("Modules") ); 65 tab->addTab( new ModulesInfo( tab ), "sysinfo/moduletabicon", tr("Modules") );
64 } 66 }
67 tab->addTab( new BenchmarkInfo( tab ), "sysinfo/benchmarktabicon", tr( "Benchmark" ) );
65 tab->addTab( new VersionInfo( tab ), "sysinfo/versiontabicon", tr("Version") ); 68 tab->addTab( new VersionInfo( tab ), "sysinfo/versiontabicon", tr("Version") );
66 69
67 tab->setCurrentTab( tr( "Memory" ) ); 70 tab->setCurrentTab( tr( "Memory" ) );
68} 71}
69 72
70 73