Diffstat (limited to 'noncore/settings/sysinfo/sysinfo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/sysinfo.cpp | 17 |
1 files changed, 4 insertions, 13 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 | |||
@@ -23,7 +23,7 @@ | |||
23 | **********************************************************************/ | 23 | **********************************************************************/ |
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" |
29 | #include "modulesinfo.h" | 29 | #include "modulesinfo.h" |
@@ -47,12 +47,6 @@ SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags ) | |||
47 | setIcon( Resource::loadPixmap( "system_icon" ) ); | 47 | setIcon( Resource::loadPixmap( "system_icon" ) ); |
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 ); |
58 | lay->addWidget( tab ); | 52 | lay->addWidget( tab ); |
@@ -61,12 +55,9 @@ SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags ) | |||
61 | #if defined(_OS_LINUX_) || defined(Q_OS_LINUX) | 55 | #if defined(_OS_LINUX_) || defined(Q_OS_LINUX) |
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 ) | 59 | tab->addTab( new ProcessInfo( tab ), "sysinfo/processtabicon", tr( "Process" ) ); |
66 | { | 60 | tab->addTab( new ModulesInfo( tab ), "sysinfo/moduletabicon", tr( "Modules" ) ); |
67 | tab->addTab( new ProcessInfo( tab ), "sysinfo/processtabicon", tr( "Process" ) ); | ||
68 | 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" ) ); |
72 | tab->addTab( new VersionInfo( tab ), "sysinfo/versiontabicon", tr("Version") ); | 63 | tab->addTab( new VersionInfo( tab ), "sysinfo/versiontabicon", tr("Version") ); |