summaryrefslogtreecommitdiff
path: root/noncore/settings/sysinfo/sysinfo.cpp
Side-by-side diff
Diffstat (limited to 'noncore/settings/sysinfo/sysinfo.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/sysinfo/sysinfo.cpp14
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
@@ -30,2 +30,3 @@
+#include <qpe/config.h>
#include <qpe/resource.h>
@@ -39,4 +40,11 @@ SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags f )
setCaption( tr("System Info") );
+
+ resize( 220, 180 );
+
+ Config config( "qpe" );
+ config.setGroup( "Appearance" );
+ bool advanced = config.readBoolEntry( "Advanced", TRUE );
+
QVBoxLayout *lay = new QVBoxLayout( this );
- OTabWidget *tab = new OTabWidget( this, "tabwidget" );
+ OTabWidget *tab = new OTabWidget( this, "tabwidget", OTabWidget::Global, OTabWidget::Bottom );
lay->addWidget( tab );
@@ -47,7 +55,9 @@ SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags f )
tab->addTab( new LoadInfo( tab ), "sysinfo/cputabicon.png", tr("CPU") );
+ if ( advanced )
+ {
tab->addTab( new ProcessInfo( tab ), "sysinfo/processtabicon.png", tr("Process") );
tab->addTab( new ModulesInfo( tab ), "sysinfo/moduletabicon.png", tr("Modules") );
+ }
tab->addTab( new VersionInfo( tab ), "sysinfo/versiontabicon.png", tr("Version") );
- resize( 220, 180 );
}