summaryrefslogtreecommitdiff
path: root/noncore/settings/sysinfo/versioninfo.cpp
Unidiff
Diffstat (limited to 'noncore/settings/sysinfo/versioninfo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/versioninfo.cpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/noncore/settings/sysinfo/versioninfo.cpp b/noncore/settings/sysinfo/versioninfo.cpp
index 1984823..c44a05a 100644
--- a/noncore/settings/sysinfo/versioninfo.cpp
+++ b/noncore/settings/sysinfo/versioninfo.cpp
@@ -22,14 +22,10 @@
22#include <qpe/version.h> 22#include <qpe/version.h>
23 23
24#include <qfile.h> 24#include <qfile.h>
25#include <qimage.h>
26#include <qlabel.h> 25#include <qlabel.h>
27#include <qlayout.h> 26#include <qlayout.h>
28#include <qpixmap.h>
29#include <qpainter.h>
30#include <qscrollview.h> 27#include <qscrollview.h>
31#include <qtextstream.h> 28#include <qtextstream.h>
32#include <qtimer.h>
33#include <qwhatsthis.h> 29#include <qwhatsthis.h>
34 30
35#include "versioninfo.h" 31#include "versioninfo.h"
@@ -58,15 +54,15 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
58 if ( file.open( IO_ReadOnly ) ) 54 if ( file.open( IO_ReadOnly ) )
59 { 55 {
60 QTextStream t( &file ); 56 QTextStream t( &file );
61 QString v; 57 QStringList strList;
62 t >> v; t >> v; t >> v; 58
63 v = v.left( 20 ); 59 strList = QStringList::split( " " , t.read(), false );
60
64 kernelVersionString = "<qt>" + tr( "<b>Linux Kernel</b><p>Version: " ); 61 kernelVersionString = "<qt>" + tr( "<b>Linux Kernel</b><p>Version: " );
65 kernelVersionString.append( v ); 62 kernelVersionString.append( strList[2] );
66 kernelVersionString.append( "<br>" ); 63 kernelVersionString.append( "<br>" );
67 t >> v;
68 kernelVersionString.append( tr( "Compiled by: " ) ); 64 kernelVersionString.append( tr( "Compiled by: " ) );
69 kernelVersionString.append( v ); 65 kernelVersionString.append( strList[3] );
70 kernelVersionString.append("</qt>"); 66 kernelVersionString.append("</qt>");
71 file.close(); 67 file.close();
72 } 68 }