Diffstat (limited to 'noncore/settings/sysinfo/sysinfo.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/sysinfo.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/noncore/settings/sysinfo/sysinfo.cpp b/noncore/settings/sysinfo/sysinfo.cpp index 56ac488..ca08ae2 100644 --- a/noncore/settings/sysinfo/sysinfo.cpp +++ b/noncore/settings/sysinfo/sysinfo.cpp | |||
@@ -29,4 +29,5 @@ | |||
29 | #include "otabwidget.h" | 29 | #include "otabwidget.h" |
30 | 30 | ||
31 | #include <qpe/config.h> | ||
31 | #include <qpe/resource.h> | 32 | #include <qpe/resource.h> |
32 | 33 | ||
@@ -38,6 +39,13 @@ SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags f ) | |||
38 | setIcon( Resource::loadPixmap( "system_icon" ) ); | 39 | setIcon( Resource::loadPixmap( "system_icon" ) ); |
39 | setCaption( tr("System Info") ); | 40 | setCaption( tr("System Info") ); |
41 | |||
42 | resize( 220, 180 ); | ||
43 | |||
44 | Config config( "qpe" ); | ||
45 | config.setGroup( "Appearance" ); | ||
46 | bool advanced = config.readBoolEntry( "Advanced", TRUE ); | ||
47 | |||
40 | QVBoxLayout *lay = new QVBoxLayout( this ); | 48 | QVBoxLayout *lay = new QVBoxLayout( this ); |
41 | OTabWidget *tab = new OTabWidget( this, "tabwidget" ); | 49 | OTabWidget *tab = new OTabWidget( this, "tabwidget", OTabWidget::Global, OTabWidget::Bottom ); |
42 | lay->addWidget( tab ); | 50 | lay->addWidget( tab ); |
43 | tab->addTab( new MemoryInfo( tab ), "sysinfo/memorytabicon.png", tr("Memory") ); | 51 | tab->addTab( new MemoryInfo( tab ), "sysinfo/memorytabicon.png", tr("Memory") ); |
@@ -46,9 +54,11 @@ SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags f ) | |||
46 | #endif | 54 | #endif |
47 | tab->addTab( new LoadInfo( tab ), "sysinfo/cputabicon.png", tr("CPU") ); | 55 | tab->addTab( new LoadInfo( tab ), "sysinfo/cputabicon.png", tr("CPU") ); |
56 | if ( advanced ) | ||
57 | { | ||
48 | tab->addTab( new ProcessInfo( tab ), "sysinfo/processtabicon.png", tr("Process") ); | 58 | tab->addTab( new ProcessInfo( tab ), "sysinfo/processtabicon.png", tr("Process") ); |
49 | tab->addTab( new ModulesInfo( tab ), "sysinfo/moduletabicon.png", tr("Modules") ); | 59 | tab->addTab( new ModulesInfo( tab ), "sysinfo/moduletabicon.png", tr("Modules") ); |
60 | } | ||
50 | tab->addTab( new VersionInfo( tab ), "sysinfo/versiontabicon.png", tr("Version") ); | 61 | tab->addTab( new VersionInfo( tab ), "sysinfo/versiontabicon.png", tr("Version") ); |
51 | 62 | ||
52 | resize( 220, 180 ); | ||
53 | } | 63 | } |
54 | 64 | ||