-rw-r--r-- | noncore/settings/sysinfo/versioninfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/settings/sysinfo/versioninfo.cpp b/noncore/settings/sysinfo/versioninfo.cpp index abb8d7f..1984823 100644 --- a/noncore/settings/sysinfo/versioninfo.cpp +++ b/noncore/settings/sysinfo/versioninfo.cpp | |||
@@ -30,49 +30,49 @@ | |||
30 | #include <qscrollview.h> | 30 | #include <qscrollview.h> |
31 | #include <qtextstream.h> | 31 | #include <qtextstream.h> |
32 | #include <qtimer.h> | 32 | #include <qtimer.h> |
33 | #include <qwhatsthis.h> | 33 | #include <qwhatsthis.h> |
34 | 34 | ||
35 | #include "versioninfo.h" | 35 | #include "versioninfo.h" |
36 | 36 | ||
37 | #include <opie/odevice.h> | 37 | #include <opie/odevice.h> |
38 | 38 | ||
39 | using namespace Opie; | 39 | using namespace Opie; |
40 | 40 | ||
41 | VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) | 41 | VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) |
42 | : QWidget( parent, name, f ) | 42 | : QWidget( parent, name, f ) |
43 | { | 43 | { |
44 | setMinimumSize( 200, 150 ); | 44 | setMinimumSize( 200, 150 ); |
45 | 45 | ||
46 | QVBoxLayout *tmpvb = new QVBoxLayout( this ); | 46 | QVBoxLayout *tmpvb = new QVBoxLayout( this ); |
47 | QScrollView *sv = new QScrollView( this ); | 47 | QScrollView *sv = new QScrollView( this ); |
48 | tmpvb->addWidget( sv, 0, 0 ); | 48 | tmpvb->addWidget( sv, 0, 0 ); |
49 | sv->setResizePolicy( QScrollView::AutoOneFit ); | 49 | sv->setResizePolicy( QScrollView::AutoOneFit ); |
50 | sv->setFrameStyle( QFrame::NoFrame ); | 50 | sv->setFrameStyle( QFrame::NoFrame ); |
51 | QWidget *container = new QWidget( sv->viewport() ); | 51 | QWidget *container = new QWidget( sv->viewport() ); |
52 | sv->addChild( container ); | 52 | sv->addChild( container ); |
53 | 53 | ||
54 | QVBoxLayout *vb = new QVBoxLayout( container, 4 ); | 54 | QVBoxLayout *vb = new QVBoxLayout( container, 3 ); |
55 | 55 | ||
56 | QString kernelVersionString; | 56 | QString kernelVersionString; |
57 | QFile file( "/proc/version" ); | 57 | QFile file( "/proc/version" ); |
58 | if ( file.open( IO_ReadOnly ) ) | 58 | if ( file.open( IO_ReadOnly ) ) |
59 | { | 59 | { |
60 | QTextStream t( &file ); | 60 | QTextStream t( &file ); |
61 | QString v; | 61 | QString v; |
62 | t >> v; t >> v; t >> v; | 62 | t >> v; t >> v; t >> v; |
63 | v = v.left( 20 ); | 63 | v = v.left( 20 ); |
64 | kernelVersionString = "<qt>" + tr( "<b>Linux Kernel</b><p>Version: " ); | 64 | kernelVersionString = "<qt>" + tr( "<b>Linux Kernel</b><p>Version: " ); |
65 | kernelVersionString.append( v ); | 65 | kernelVersionString.append( v ); |
66 | kernelVersionString.append( "<br>" ); | 66 | kernelVersionString.append( "<br>" ); |
67 | t >> v; | 67 | t >> v; |
68 | kernelVersionString.append( tr( "Compiled by: " ) ); | 68 | kernelVersionString.append( tr( "Compiled by: " ) ); |
69 | kernelVersionString.append( v ); | 69 | kernelVersionString.append( v ); |
70 | kernelVersionString.append("</qt>"); | 70 | kernelVersionString.append("</qt>"); |
71 | file.close(); | 71 | file.close(); |
72 | } | 72 | } |
73 | 73 | ||
74 | QString palmtopVersionString = "<qt>" + tr( "<b>Opie</b><p>Version: " ); | 74 | QString palmtopVersionString = "<qt>" + tr( "<b>Opie</b><p>Version: " ); |
75 | palmtopVersionString.append( QPE_VERSION ); | 75 | palmtopVersionString.append( QPE_VERSION ); |
76 | palmtopVersionString.append( "<br>" ); | 76 | palmtopVersionString.append( "<br>" ); |
77 | #ifdef QPE_VENDOR | 77 | #ifdef QPE_VENDOR |
78 | QString builder = QPE_VENDOR; | 78 | QString builder = QPE_VENDOR; |