author | drw <drw> | 2002-07-16 01:08:45 (UTC) |
---|---|---|
committer | drw <drw> | 2002-07-16 01:08:45 (UTC) |
commit | b1849c87eade2706908caddeda5924866c040441 (patch) (unidiff) | |
tree | f36cbfb15eaa2eeea9f20438a5655188ee6165ab /noncore/settings/sysinfo/sysinfo.cpp | |
parent | 72eb74051ed8f1b7696041e241ab99df3af5b08d (diff) | |
download | opie-b1849c87eade2706908caddeda5924866c040441.zip opie-b1849c87eade2706908caddeda5924866c040441.tar.gz opie-b1849c87eade2706908caddeda5924866c040441.tar.bz2 |
New tab widget
Diffstat (limited to 'noncore/settings/sysinfo/sysinfo.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/sysinfo.cpp | 18 |
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 | |||
@@ -23,3 +23,2 @@ | |||
23 | #include "storage.h" | 23 | #include "storage.h" |
24 | //#include "graphics.h" | ||
25 | #include "processinfo.h" | 24 | #include "processinfo.h" |
@@ -29,2 +28,3 @@ | |||
29 | 28 | ||
29 | #include "otabwidget.h" | ||
30 | 30 | ||
@@ -32,3 +32,2 @@ | |||
32 | 32 | ||
33 | #include <qtabwidget.h> | ||
34 | #include <qlayout.h> | 33 | #include <qlayout.h> |
@@ -41,13 +40,12 @@ SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags f ) | |||
41 | QVBoxLayout *lay = new QVBoxLayout( this ); | 40 | QVBoxLayout *lay = new QVBoxLayout( this ); |
42 | QTabWidget *tab = new QTabWidget( this ); | 41 | OTabWidget *tab = new OTabWidget( this, "tabwidget" ); |
43 | lay->addWidget( tab ); | 42 | lay->addWidget( tab ); |
44 | tab->addTab( new MemoryInfo( tab ), tr("Memory") ); | 43 | tab->addTab( new MemoryInfo( tab ), "sysinfo/memorytabicon.png", tr("Memory") ); |
45 | #if defined(_OS_LINUX_) || defined(Q_OS_LINUX) | 44 | #if defined(_OS_LINUX_) || defined(Q_OS_LINUX) |
46 | tab->addTab( new StorageInfo( tab ), tr("Storage") ); | 45 | tab->addTab( new StorageInfo( tab ), "sysinfo/storagetabicon.png", tr("Storage") ); |
47 | #endif | 46 | #endif |
48 | tab->addTab( new LoadInfo( tab ), tr("CPU") ); | 47 | tab->addTab( new LoadInfo( tab ), "sysinfo/cputabicon.png", tr("CPU") ); |
49 | // tab->addTab( new Graphics( tab ), tr("Graphics") ); | 48 | tab->addTab( new ProcessInfo( tab ), "sysinfo/processtabicon.png", tr("Process") ); |
50 | tab->addTab( new ProcessInfo( tab ), tr("Process") ); | 49 | tab->addTab( new ModulesInfo( tab ), "sysinfo/moduletabicon.png", tr("Modules") ); |
51 | tab->addTab( new ModulesInfo( tab ), tr("Modules") ); | 50 | tab->addTab( new VersionInfo( tab ), "sysinfo/versiontabicon.png", tr("Version") ); |
52 | tab->addTab( new VersionInfo( tab ), tr("Version") ); | ||
53 | 51 | ||