summaryrefslogtreecommitdiff
path: root/noncore/settings/sysinfo/sysinfo.cpp
authordrw <drw>2002-07-16 01:08:45 (UTC)
committer drw <drw>2002-07-16 01:08:45 (UTC)
commitb1849c87eade2706908caddeda5924866c040441 (patch) (side-by-side diff)
treef36cbfb15eaa2eeea9f20438a5655188ee6165ab /noncore/settings/sysinfo/sysinfo.cpp
parent72eb74051ed8f1b7696041e241ab99df3af5b08d (diff)
downloadopie-b1849c87eade2706908caddeda5924866c040441.zip
opie-b1849c87eade2706908caddeda5924866c040441.tar.gz
opie-b1849c87eade2706908caddeda5924866c040441.tar.bz2
New tab widget
Diffstat (limited to 'noncore/settings/sysinfo/sysinfo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/sysinfo.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/noncore/settings/sysinfo/sysinfo.cpp b/noncore/settings/sysinfo/sysinfo.cpp
index 13f810a..56ac488 100644
--- a/noncore/settings/sysinfo/sysinfo.cpp
+++ b/noncore/settings/sysinfo/sysinfo.cpp
@@ -21,16 +21,15 @@
#include "memory.h"
#include "load.h"
#include "storage.h"
-//#include "graphics.h"
#include "processinfo.h"
#include "modulesinfo.h"
#include "versioninfo.h"
#include "sysinfo.h"
+#include "otabwidget.h"
#include <qpe/resource.h>
-#include <qtabwidget.h>
#include <qlayout.h>
SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags f )
@@ -39,17 +38,16 @@ SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags f )
setIcon( Resource::loadPixmap( "system_icon" ) );
setCaption( tr("System Info") );
QVBoxLayout *lay = new QVBoxLayout( this );
- QTabWidget *tab = new QTabWidget( this );
+ OTabWidget *tab = new OTabWidget( this, "tabwidget" );
lay->addWidget( tab );
- tab->addTab( new MemoryInfo( tab ), tr("Memory") );
+ tab->addTab( new MemoryInfo( tab ), "sysinfo/memorytabicon.png", tr("Memory") );
#if defined(_OS_LINUX_) || defined(Q_OS_LINUX)
- tab->addTab( new StorageInfo( tab ), tr("Storage") );
+ tab->addTab( new StorageInfo( tab ), "sysinfo/storagetabicon.png", tr("Storage") );
#endif
- tab->addTab( new LoadInfo( tab ), tr("CPU") );
-// tab->addTab( new Graphics( tab ), tr("Graphics") );
- tab->addTab( new ProcessInfo( tab ), tr("Process") );
- tab->addTab( new ModulesInfo( tab ), tr("Modules") );
- tab->addTab( new VersionInfo( tab ), tr("Version") );
+ tab->addTab( new LoadInfo( tab ), "sysinfo/cputabicon.png", tr("CPU") );
+ 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 );
}