Diffstat (limited to 'noncore/settings/sysinfo/sysinfo.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/sysinfo.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/noncore/settings/sysinfo/sysinfo.cpp b/noncore/settings/sysinfo/sysinfo.cpp index 7000175..03db22a 100644 --- a/noncore/settings/sysinfo/sysinfo.cpp +++ b/noncore/settings/sysinfo/sysinfo.cpp | |||
@@ -24,5 +24,5 @@ | |||
24 | 24 | ||
25 | #include "memory.h" | 25 | #include "memory.h" |
26 | #include "load.h" | 26 | #include "devicesinfo.h" |
27 | #include "storage.h" | 27 | #include "storage.h" |
28 | #include "processinfo.h" | 28 | #include "processinfo.h" |
@@ -48,10 +48,4 @@ SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags ) | |||
48 | setCaption( tr("System Info") ); | 48 | setCaption( tr("System Info") ); |
49 | 49 | ||
50 | resize( 220, 180 ); | ||
51 | |||
52 | Config config( "qpe" ); | ||
53 | config.setGroup( "Appearance" ); | ||
54 | bool advanced = config.readBoolEntry( "Advanced", TRUE ); | ||
55 | |||
56 | QVBoxLayout *lay = new QVBoxLayout( this ); | 50 | QVBoxLayout *lay = new QVBoxLayout( this ); |
57 | OTabWidget *tab = new OTabWidget( this, "tabwidget", OTabWidget::Global ); | 51 | OTabWidget *tab = new OTabWidget( this, "tabwidget", OTabWidget::Global ); |
@@ -62,10 +56,7 @@ SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags ) | |||
62 | tab->addTab( new FileSysInfo( tab ), "sysinfo/storagetabicon", tr("Storage") ); | 56 | tab->addTab( new FileSysInfo( tab ), "sysinfo/storagetabicon", tr("Storage") ); |
63 | #endif | 57 | #endif |
64 | tab->addTab( new LoadInfo( tab ), "sysinfo/cputabicon", tr("CPU") ); | 58 | tab->addTab( new DevicesInfo( tab ), "sysinfo/cputabicon", tr("Devices") ); |
65 | if ( advanced ) | ||
66 | { | ||
67 | tab->addTab( new ProcessInfo( tab ), "sysinfo/processtabicon", tr( "Process" ) ); | 59 | tab->addTab( new ProcessInfo( tab ), "sysinfo/processtabicon", tr( "Process" ) ); |
68 | tab->addTab( new ModulesInfo( tab ), "sysinfo/moduletabicon", tr( "Modules" ) ); | 60 | tab->addTab( new ModulesInfo( tab ), "sysinfo/moduletabicon", tr( "Modules" ) ); |
69 | } | ||
70 | tab->addTab( new SyslogInfo( tab ), "sysinfo/syslogtabicon", tr( "Syslog" ) ); | 61 | tab->addTab( new SyslogInfo( tab ), "sysinfo/syslogtabicon", tr( "Syslog" ) ); |
71 | tab->addTab( new BenchmarkInfo( tab ), "sysinfo/benchmarktabicon", tr( "Benchmark" ) ); | 62 | tab->addTab( new BenchmarkInfo( tab ), "sysinfo/benchmarktabicon", tr( "Benchmark" ) ); |