summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/main.cpp2
-rw-r--r--noncore/settings/sysinfo/opie-sysinfo.control2
-rw-r--r--noncore/settings/sysinfo/sysinfo.cpp2
-rw-r--r--noncore/settings/sysinfo/sysinfo.pro4
-rw-r--r--noncore/settings/sysinfo/versioninfo.cpp2
5 files changed, 6 insertions, 6 deletions
diff --git a/noncore/settings/sysinfo/main.cpp b/noncore/settings/sysinfo/main.cpp
index d071f71..3a7b1b1 100644
--- a/noncore/settings/sysinfo/main.cpp
+++ b/noncore/settings/sysinfo/main.cpp
@@ -1,26 +1,26 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
21#include "sysinfo.h" 21#include "sysinfo.h"
22 22
23#include <opie/oapplicationfactory.h> 23#include <opie2/oapplicationfactory.h>
24 24
25 25
26OPIE_EXPORT_APP( OApplicationFactory<SystemInfo> ) 26OPIE_EXPORT_APP( OApplicationFactory<SystemInfo> )
diff --git a/noncore/settings/sysinfo/opie-sysinfo.control b/noncore/settings/sysinfo/opie-sysinfo.control
index 9b56b36..6c9f82a 100644
--- a/noncore/settings/sysinfo/opie-sysinfo.control
+++ b/noncore/settings/sysinfo/opie-sysinfo.control
@@ -1,9 +1,9 @@
1Package: opie-sysinfo 1Package: opie-sysinfo
2Files: plugins/application/libsysinfo.so* bin/sysinfo apps/Settings/sysinfo.desktop pics/sysinfo 2Files: plugins/application/libsysinfo.so* bin/sysinfo apps/Settings/sysinfo.desktop pics/sysinfo
3Priority: optional 3Priority: optional
4Section: opie/settings 4Section: opie/settings
5Maintainer: Dan Williams <drw@handhelds.org> 5Maintainer: Dan Williams <drw@handhelds.org>
6Architecture: arm 6Architecture: arm
7Depends: task-opie-minimal, libopie1 7Depends: task-opie-minimal, libopiecore2, libopieui2
8Description: System Information dialog for the Opie environment. 8Description: System Information dialog for the Opie environment.
9Version: $QPE_VERSION$EXTRAVERSION 9Version: $QPE_VERSION$EXTRAVERSION
diff --git a/noncore/settings/sysinfo/sysinfo.cpp b/noncore/settings/sysinfo/sysinfo.cpp
index 0c5a969..5f7b527 100644
--- a/noncore/settings/sysinfo/sysinfo.cpp
+++ b/noncore/settings/sysinfo/sysinfo.cpp
@@ -1,70 +1,70 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19********************************************************************** 19**********************************************************************
20** 20**
21** Enhancements by: Dan Williams, <williamsdr@acm.org> 21** Enhancements by: Dan Williams, <williamsdr@acm.org>
22** 22**
23**********************************************************************/ 23**********************************************************************/
24 24
25#include "memory.h" 25#include "memory.h"
26#include "load.h" 26#include "load.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"
30#include "versioninfo.h" 30#include "versioninfo.h"
31#include "sysinfo.h" 31#include "sysinfo.h"
32 32
33#include <opie/otabwidget.h> 33#include <opie2/otabwidget.h>
34 34
35#include <qpe/config.h> 35#include <qpe/config.h>
36#include <qpe/resource.h> 36#include <qpe/resource.h>
37 37
38#include <qlayout.h> 38#include <qlayout.h>
39 39
40SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags ) 40SystemInfo::SystemInfo( QWidget *parent, const char *name, WFlags )
41 : QWidget( parent, name, WStyle_ContextHelp ) 41 : QWidget( parent, name, WStyle_ContextHelp )
42{ 42{
43 setIcon( Resource::loadPixmap( "system_icon" ) ); 43 setIcon( Resource::loadPixmap( "system_icon" ) );
44 setCaption( tr("System Info") ); 44 setCaption( tr("System Info") );
45 45
46 resize( 220, 180 ); 46 resize( 220, 180 );
47 47
48 Config config( "qpe" ); 48 Config config( "qpe" );
49 config.setGroup( "Appearance" ); 49 config.setGroup( "Appearance" );
50 bool advanced = config.readBoolEntry( "Advanced", TRUE ); 50 bool advanced = config.readBoolEntry( "Advanced", TRUE );
51 51
52 QVBoxLayout *lay = new QVBoxLayout( this ); 52 QVBoxLayout *lay = new QVBoxLayout( this );
53 OTabWidget *tab = new OTabWidget( this, "tabwidget", OTabWidget::Global ); 53 OTabWidget *tab = new OTabWidget( this, "tabwidget", OTabWidget::Global );
54 lay->addWidget( tab ); 54 lay->addWidget( tab );
55 tab->addTab( new MemoryInfo( tab ), "sysinfo/memorytabicon", tr("Memory") ); 55 tab->addTab( new MemoryInfo( tab ), "sysinfo/memorytabicon", tr("Memory") );
56#if defined(_OS_LINUX_) || defined(Q_OS_LINUX) 56#if defined(_OS_LINUX_) || defined(Q_OS_LINUX)
57 tab->addTab( new FileSysInfo( tab ), "sysinfo/storagetabicon", tr("Storage") ); 57 tab->addTab( new FileSysInfo( tab ), "sysinfo/storagetabicon", tr("Storage") );
58#endif 58#endif
59 tab->addTab( new LoadInfo( tab ), "sysinfo/cputabicon", tr("CPU") ); 59 tab->addTab( new LoadInfo( tab ), "sysinfo/cputabicon", tr("CPU") );
60 if ( advanced ) 60 if ( advanced )
61 { 61 {
62 tab->addTab( new ProcessInfo( tab ), "sysinfo/processtabicon", tr("Process") ); 62 tab->addTab( new ProcessInfo( tab ), "sysinfo/processtabicon", tr("Process") );
63 tab->addTab( new ModulesInfo( tab ), "sysinfo/moduletabicon", tr("Modules") ); 63 tab->addTab( new ModulesInfo( tab ), "sysinfo/moduletabicon", tr("Modules") );
64 } 64 }
65 tab->addTab( new VersionInfo( tab ), "sysinfo/versiontabicon", tr("Version") ); 65 tab->addTab( new VersionInfo( tab ), "sysinfo/versiontabicon", tr("Version") );
66 66
67 tab->setCurrentTab( tr( "Memory" ) ); 67 tab->setCurrentTab( tr( "Memory" ) );
68} 68}
69 69
70 70
diff --git a/noncore/settings/sysinfo/sysinfo.pro b/noncore/settings/sysinfo/sysinfo.pro
index 30da7a8..3ba4266 100644
--- a/noncore/settings/sysinfo/sysinfo.pro
+++ b/noncore/settings/sysinfo/sysinfo.pro
@@ -1,28 +1,28 @@
1CONFIG = qt warn_on release quick-app 1CONFIG = qt warn_on release quick-app
2HEADERS = memory.h \ 2HEADERS = memory.h \
3 graph.h \ 3 graph.h \
4 load.h \ 4 load.h \
5 storage.h \ 5 storage.h \
6 processinfo.h \ 6 processinfo.h \
7 modulesinfo.h \ 7 modulesinfo.h \
8 detail.h \ 8 detail.h \
9 versioninfo.h \ 9 versioninfo.h \
10 sysinfo.h 10 sysinfo.h
11SOURCES = main.cpp \ 11SOURCES = main.cpp \
12 memory.cpp \ 12 memory.cpp \
13 graph.cpp \ 13 graph.cpp \
14 load.cpp \ 14 load.cpp \
15 storage.cpp \ 15 storage.cpp \
16 processinfo.cpp \ 16 processinfo.cpp \
17 modulesinfo.cpp \ 17 modulesinfo.cpp \
18 detail.cpp \ 18 detail.cpp \
19 versioninfo.cpp \ 19 versioninfo.cpp \
20 sysinfo.cpp 20 sysinfo.cpp
21 21
22INCLUDEPATH += $(OPIEDIR)/include 22INCLUDEPATH += $(OPIEDIR)/include
23DEPENDPATH += $(OPIEDIR)/include 23DEPENDPATH += $(OPIEDIR)/include
24LIBS += -lqpe -lopie 24LIBS += -lqpe -lopiecore2 -lopieui2
25 25
26 TARGET= sysinfo 26TARGET = sysinfo
27 27
28include ( $(OPIEDIR)/include.pro ) 28include ( $(OPIEDIR)/include.pro )
diff --git a/noncore/settings/sysinfo/versioninfo.cpp b/noncore/settings/sysinfo/versioninfo.cpp
index c44a05a..0ebcebe 100644
--- a/noncore/settings/sysinfo/versioninfo.cpp
+++ b/noncore/settings/sysinfo/versioninfo.cpp
@@ -1,171 +1,171 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3** 3**
4** This file is part of Qtopia Environment. 4** This file is part of Qtopia Environment.
5** 5**
6** This file may be distributed and/or modified under the terms of the 6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the 8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file. 9** packaging of this file.
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19**********************************************************************/ 19**********************************************************************/
20 20
21#include <qpe/resource.h> 21#include <qpe/resource.h>
22#include <qpe/version.h> 22#include <qpe/version.h>
23 23
24#include <qfile.h> 24#include <qfile.h>
25#include <qlabel.h> 25#include <qlabel.h>
26#include <qlayout.h> 26#include <qlayout.h>
27#include <qscrollview.h> 27#include <qscrollview.h>
28#include <qtextstream.h> 28#include <qtextstream.h>
29#include <qwhatsthis.h> 29#include <qwhatsthis.h>
30 30
31#include "versioninfo.h" 31#include "versioninfo.h"
32 32
33#include <opie/odevice.h> 33#include <opie2/odevice.h>
34 34
35using namespace Opie; 35using namespace Opie;
36 36
37VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) 37VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
38 : QWidget( parent, name, f ) 38 : QWidget( parent, name, f )
39{ 39{
40 setMinimumSize( 200, 150 ); 40 setMinimumSize( 200, 150 );
41 41
42 QVBoxLayout *tmpvb = new QVBoxLayout( this ); 42 QVBoxLayout *tmpvb = new QVBoxLayout( this );
43 QScrollView *sv = new QScrollView( this ); 43 QScrollView *sv = new QScrollView( this );
44 tmpvb->addWidget( sv, 0, 0 ); 44 tmpvb->addWidget( sv, 0, 0 );
45 sv->setResizePolicy( QScrollView::AutoOneFit ); 45 sv->setResizePolicy( QScrollView::AutoOneFit );
46 sv->setFrameStyle( QFrame::NoFrame ); 46 sv->setFrameStyle( QFrame::NoFrame );
47 QWidget *container = new QWidget( sv->viewport() ); 47 QWidget *container = new QWidget( sv->viewport() );
48 sv->addChild( container ); 48 sv->addChild( container );
49 49
50 QVBoxLayout *vb = new QVBoxLayout( container, 3 ); 50 QVBoxLayout *vb = new QVBoxLayout( container, 3 );
51 51
52 QString kernelVersionString; 52 QString kernelVersionString;
53 QFile file( "/proc/version" ); 53 QFile file( "/proc/version" );
54 if ( file.open( IO_ReadOnly ) ) 54 if ( file.open( IO_ReadOnly ) )
55 { 55 {
56 QTextStream t( &file ); 56 QTextStream t( &file );
57 QStringList strList; 57 QStringList strList;
58 58
59 strList = QStringList::split( " " , t.read(), false ); 59 strList = QStringList::split( " " , t.read(), false );
60 60
61 kernelVersionString = "<qt>" + tr( "<b>Linux Kernel</b><p>Version: " ); 61 kernelVersionString = "<qt>" + tr( "<b>Linux Kernel</b><p>Version: " );
62 kernelVersionString.append( strList[2] ); 62 kernelVersionString.append( strList[2] );
63 kernelVersionString.append( "<br>" ); 63 kernelVersionString.append( "<br>" );
64 kernelVersionString.append( tr( "Compiled by: " ) ); 64 kernelVersionString.append( tr( "Compiled by: " ) );
65 kernelVersionString.append( strList[3] ); 65 kernelVersionString.append( strList[3] );
66 kernelVersionString.append("</qt>"); 66 kernelVersionString.append("</qt>");
67 file.close(); 67 file.close();
68 } 68 }
69 69
70 QString palmtopVersionString = "<qt>" + tr( "<b>Opie</b><p>Version: " ); 70 QString palmtopVersionString = "<qt>" + tr( "<b>Opie</b><p>Version: " );
71 palmtopVersionString.append( QPE_VERSION ); 71 palmtopVersionString.append( QPE_VERSION );
72 palmtopVersionString.append( "<br>" ); 72 palmtopVersionString.append( "<br>" );
73#ifdef QPE_VENDOR 73#ifdef QPE_VENDOR
74 QString builder = QPE_VENDOR; 74 QString builder = QPE_VENDOR;
75#else 75#else
76 QString builder = "Unknown"; 76 QString builder = "Unknown";
77#endif 77#endif
78 palmtopVersionString.append( tr( "Compiled by: " ) ); 78 palmtopVersionString.append( tr( "Compiled by: " ) );
79 palmtopVersionString.append( builder ); 79 palmtopVersionString.append( builder );
80 palmtopVersionString.append( "<br>" ); 80 palmtopVersionString.append( "<br>" );
81 palmtopVersionString.append( tr( "Built on: " ) ); 81 palmtopVersionString.append( tr( "Built on: " ) );
82 palmtopVersionString.append( __DATE__ ); 82 palmtopVersionString.append( __DATE__ );
83 palmtopVersionString.append( "</qt>" ); 83 palmtopVersionString.append( "</qt>" );
84 84
85 QHBoxLayout *hb1 = new QHBoxLayout( vb ); 85 QHBoxLayout *hb1 = new QHBoxLayout( vb );
86 hb1->setSpacing( 2 ); 86 hb1->setSpacing( 2 );
87 87
88 QLabel *palmtopLogo = new QLabel( container ); 88 QLabel *palmtopLogo = new QLabel( container );
89 QImage logo1 = Resource::loadImage( "logo/opielogo" ); 89 QImage logo1 = Resource::loadImage( "logo/opielogo" );
90 logo1 = logo1.smoothScale( 50, 55 ); 90 logo1 = logo1.smoothScale( 50, 55 );
91 QPixmap logo1Pixmap; 91 QPixmap logo1Pixmap;
92 logo1Pixmap.convertFromImage( logo1 ); 92 logo1Pixmap.convertFromImage( logo1 );
93 palmtopLogo->setPixmap( logo1Pixmap ); 93 palmtopLogo->setPixmap( logo1Pixmap );
94 palmtopLogo->setFixedSize( 60, 60 ); 94 palmtopLogo->setFixedSize( 60, 60 );
95 hb1->addWidget( palmtopLogo, 0, Qt::AlignTop + Qt::AlignLeft ); 95 hb1->addWidget( palmtopLogo, 0, Qt::AlignTop + Qt::AlignLeft );
96 96
97 QLabel *palmtopVersion = new QLabel( container ); 97 QLabel *palmtopVersion = new QLabel( container );
98 palmtopVersion->setText( palmtopVersionString ); 98 palmtopVersion->setText( palmtopVersionString );
99 hb1->addWidget( palmtopVersion, 1, Qt::AlignTop + Qt::AlignLeft ); 99 hb1->addWidget( palmtopVersion, 1, Qt::AlignTop + Qt::AlignLeft );
100 100
101 101
102 QHBoxLayout *hb2 = new QHBoxLayout( vb ); 102 QHBoxLayout *hb2 = new QHBoxLayout( vb );
103 hb1->setSpacing( 2 ); 103 hb1->setSpacing( 2 );
104 104
105 QLabel *linuxLogo = new QLabel( container ); 105 QLabel *linuxLogo = new QLabel( container );
106 QImage logo2 = Resource::loadImage( "logo/tux-logo" ); 106 QImage logo2 = Resource::loadImage( "logo/tux-logo" );
107 logo2 = logo2.smoothScale( 55, 60 ); 107 logo2 = logo2.smoothScale( 55, 60 );
108 QPixmap logo2Pixmap; 108 QPixmap logo2Pixmap;
109 logo2Pixmap.convertFromImage( logo2 ); 109 logo2Pixmap.convertFromImage( logo2 );
110 linuxLogo->setPixmap( logo2Pixmap ); 110 linuxLogo->setPixmap( logo2Pixmap );
111 linuxLogo->setFixedSize( 60, 60 ); 111 linuxLogo->setFixedSize( 60, 60 );
112 hb2->addWidget( linuxLogo, 0, Qt::AlignTop + Qt::AlignLeft ); 112 hb2->addWidget( linuxLogo, 0, Qt::AlignTop + Qt::AlignLeft );
113 113
114 QLabel *kernelVersion = new QLabel( container ); 114 QLabel *kernelVersion = new QLabel( container );
115 kernelVersion->setText( kernelVersionString ); 115 kernelVersion->setText( kernelVersionString );
116 hb2->addWidget( kernelVersion, 1, Qt::AlignTop + Qt::AlignLeft ); 116 hb2->addWidget( kernelVersion, 1, Qt::AlignTop + Qt::AlignLeft );
117 117
118 118
119 QHBoxLayout *hb3 = new QHBoxLayout( vb ); 119 QHBoxLayout *hb3 = new QHBoxLayout( vb );
120 hb3->setSpacing( 2 ); 120 hb3->setSpacing( 2 );
121 121
122 QLabel *palmtopLogo3 = new QLabel( container ); 122 QLabel *palmtopLogo3 = new QLabel( container );
123 123
124 OModel model = ODevice::inst()->model(); 124 OModel model = ODevice::inst()->model();
125 QString modelPixmap = "sysinfo/"; 125 QString modelPixmap = "sysinfo/";
126 if ( model == Model_Zaurus_SLC7x0 ) 126 if ( model == Model_Zaurus_SLC7x0 )
127 modelPixmap += "zaurusc700"; 127 modelPixmap += "zaurusc700";
128 else if ( model >= Model_Zaurus_SL5000 && model <= Model_Zaurus_SLB600 ) 128 else if ( model >= Model_Zaurus_SL5000 && model <= Model_Zaurus_SLB600 )
129 modelPixmap += "zaurus5500"; 129 modelPixmap += "zaurus5500";
130 else if ( model >= Model_iPAQ_H31xx && model <= Model_iPAQ_H5xxx ) 130 else if ( model >= Model_iPAQ_H31xx && model <= Model_iPAQ_H5xxx )
131 modelPixmap += "ipaq3600"; 131 modelPixmap += "ipaq3600";
132 else if ( model >= Model_SIMpad_CL4 && model <= Model_SIMpad_TSinus ) 132 else if ( model >= Model_SIMpad_CL4 && model <= Model_SIMpad_TSinus )
133 modelPixmap += "simpad"; 133 modelPixmap += "simpad";
134 else 134 else
135 modelPixmap += "pda"; 135 modelPixmap += "pda";
136 136
137 QImage logo3 = Resource::loadImage( modelPixmap ); 137 QImage logo3 = Resource::loadImage( modelPixmap );
138 138
139 int width = logo3.width(); 139 int width = logo3.width();
140 int height = logo3.height(); 140 int height = logo3.height();
141 float aspect = float( height ) / width; 141 float aspect = float( height ) / width;
142 logo3 = logo3.smoothScale( 50, 50.0 * aspect ); 142 logo3 = logo3.smoothScale( 50, 50.0 * aspect );
143 143
144 QPixmap logo3Pixmap; 144 QPixmap logo3Pixmap;
145 logo3Pixmap.convertFromImage( logo3 ); 145 logo3Pixmap.convertFromImage( logo3 );
146 palmtopLogo3->setPixmap( logo3Pixmap ); 146 palmtopLogo3->setPixmap( logo3Pixmap );
147 palmtopLogo3->setFixedSize( 60, 100 ); 147 palmtopLogo3->setFixedSize( 60, 100 );
148 hb3->addWidget( palmtopLogo3, 0, Qt::AlignTop + Qt::AlignLeft ); 148 hb3->addWidget( palmtopLogo3, 0, Qt::AlignTop + Qt::AlignLeft );
149 149
150 QString systemString = "<qt><b>"; 150 QString systemString = "<qt><b>";
151 systemString.append( ODevice::inst()->systemString() ); 151 systemString.append( ODevice::inst()->systemString() );
152 systemString.append( "</b>" ); 152 systemString.append( "</b>" );
153 systemString.append( tr( "<p>Version: " ) ); 153 systemString.append( tr( "<p>Version: " ) );
154 systemString.append( ODevice::inst()->systemVersionString() ); 154 systemString.append( ODevice::inst()->systemVersionString() );
155 systemString.append( tr( "<br>Model: " ) ); 155 systemString.append( tr( "<br>Model: " ) );
156 systemString.append( ODevice::inst()->modelString() ); 156 systemString.append( ODevice::inst()->modelString() );
157 systemString.append( tr( "<br>Vendor: " ) ); 157 systemString.append( tr( "<br>Vendor: " ) );
158 systemString.append( ODevice::inst()->vendorString() ); 158 systemString.append( ODevice::inst()->vendorString() );
159 systemString.append("</qt>"); 159 systemString.append("</qt>");
160 160
161 QLabel *systemVersion = new QLabel( container ); 161 QLabel *systemVersion = new QLabel( container );
162 systemVersion->setText( systemString ); 162 systemVersion->setText( systemString );
163 hb3->addWidget( systemVersion, 1, Qt::AlignTop + Qt::AlignLeft ); 163 hb3->addWidget( systemVersion, 1, Qt::AlignTop + Qt::AlignLeft );
164 164
165 QWhatsThis::add( this, tr( "This page shows the current versions of Opie, the Linux kernel and distribution running on this handheld device." ) ); 165 QWhatsThis::add( this, tr( "This page shows the current versions of Opie, the Linux kernel and distribution running on this handheld device." ) );
166} 166}
167 167
168VersionInfo::~VersionInfo() 168VersionInfo::~VersionInfo()
169{ 169{
170} 170}
171 171