summaryrefslogtreecommitdiff
path: root/noncore/settings/sysinfo/versioninfo.cpp
Unidiff
Diffstat (limited to 'noncore/settings/sysinfo/versioninfo.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/sysinfo/versioninfo.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/noncore/settings/sysinfo/versioninfo.cpp b/noncore/settings/sysinfo/versioninfo.cpp
index a8db207..79e7fea 100644
--- a/noncore/settings/sysinfo/versioninfo.cpp
+++ b/noncore/settings/sysinfo/versioninfo.cpp
@@ -12,36 +12,38 @@
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 24#include <qfile.h>
25#include <qimage.h>
25#include <qlabel.h> 26#include <qlabel.h>
27#include <qlayout.h>
26#include <qpixmap.h> 28#include <qpixmap.h>
27#include <qpainter.h> 29#include <qpainter.h>
28#include <qimage.h>
29#include <qtimer.h>
30#include <qfile.h>
31#include <qtextstream.h> 30#include <qtextstream.h>
32#include <qlayout.h> 31#include <qtimer.h>
32#include <qwhatsthis.h>
33
33#include "versioninfo.h" 34#include "versioninfo.h"
34 35
35#include <opie/odevice.h> 36#include <opie/odevice.h>
37
36using namespace Opie; 38using namespace Opie;
37 39
38VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) 40VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
39 : QWidget( parent, name, f ) 41 : QWidget( parent, name, f )
40{ 42{
41 setMinimumSize( 200, 150 ); 43 setMinimumSize( 200, 150 );
42 44
43 QVBoxLayout *vb = new QVBoxLayout( this, 4 ); 45 QVBoxLayout *vb = new QVBoxLayout( this, 4 );
44 46
45 QString kernelVersionString; 47 QString kernelVersionString;
46 QFile file( "/proc/version" ); 48 QFile file( "/proc/version" );
47 if ( file.open( IO_ReadOnly ) ) { 49 if ( file.open( IO_ReadOnly ) ) {
@@ -113,18 +115,19 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
113 hb3->addWidget( palmtopLogo3, 0, Qt::AlignTop + Qt::AlignLeft ); 115 hb3->addWidget( palmtopLogo3, 0, Qt::AlignTop + Qt::AlignLeft );
114 116
115// QString systemString = tr( "<b>System</b><p>System: ") + ODevice::inst()->systemString() 117// QString systemString = tr( "<b>System</b><p>System: ") + ODevice::inst()->systemString()
116 QString systemString = "<b>"+ ODevice::inst()->systemString()+"</b>" 118 QString systemString = "<b>"+ ODevice::inst()->systemString()+"</b>"
117 +tr("<p>Version: " ) + ODevice::inst()->systemVersionString() 119 +tr("<p>Version: " ) + ODevice::inst()->systemVersionString()
118 +tr("<p>Model: ") + ODevice::inst()->modelString() 120 +tr("<p>Model: ") + ODevice::inst()->modelString()
119 +tr("<p>Vendor: ") + ODevice::inst()->vendorString(); 121 +tr("<p>Vendor: ") + ODevice::inst()->vendorString();
120 122
121 QLabel *systemVersion = new QLabel( this ); 123 QLabel *systemVersion = new QLabel( this );
122 systemVersion->setText( systemString ); 124 systemVersion->setText( systemString );
123 hb3->addWidget( systemVersion, 1, Qt::AlignTop + Qt::AlignLeft ); 125 hb3->addWidget( systemVersion, 1, Qt::AlignTop + Qt::AlignLeft );
124 126
127 QWhatsThis::add( this, tr( "This page shows the current versions of Opie, the Linux kernel and distribution running on this handheld device." ) );
125} 128}
126 129
127VersionInfo::~VersionInfo() 130VersionInfo::~VersionInfo()
128{ 131{
129} 132}
130 133