author | mickeyl <mickeyl> | 2003-12-08 12:43:59 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-12-08 12:43:59 (UTC) |
commit | 65720fa57a282c55e4f27ec11d892cc678719581 (patch) (unidiff) | |
tree | 65065c93d6f681e0b0dd45f6fb8aa6f87d3e49c8 | |
parent | 7b4e723545a645056156246d27b2c26c78d599f3 (diff) | |
download | opie-65720fa57a282c55e4f27ec11d892cc678719581.zip opie-65720fa57a282c55e4f27ec11d892cc678719581.tar.gz opie-65720fa57a282c55e4f27ec11d892cc678719581.tar.bz2 |
use less separation
-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 | |||
@@ -22,65 +22,65 @@ | |||
22 | #include <qpe/version.h> | 22 | #include <qpe/version.h> |
23 | 23 | ||
24 | #include <qfile.h> | 24 | #include <qfile.h> |
25 | #include <qimage.h> | 25 | #include <qimage.h> |
26 | #include <qlabel.h> | 26 | #include <qlabel.h> |
27 | #include <qlayout.h> | 27 | #include <qlayout.h> |
28 | #include <qpixmap.h> | 28 | #include <qpixmap.h> |
29 | #include <qpainter.h> | 29 | #include <qpainter.h> |
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; |
79 | #else | 79 | #else |
80 | QString builder = "Unknown"; | 80 | QString builder = "Unknown"; |
81 | #endif | 81 | #endif |
82 | palmtopVersionString.append( tr( "Compiled by: " ) ); | 82 | palmtopVersionString.append( tr( "Compiled by: " ) ); |
83 | palmtopVersionString.append( builder ); | 83 | palmtopVersionString.append( builder ); |
84 | palmtopVersionString.append( "<br>" ); | 84 | palmtopVersionString.append( "<br>" ); |
85 | palmtopVersionString.append( tr( "Built on: " ) ); | 85 | palmtopVersionString.append( tr( "Built on: " ) ); |
86 | palmtopVersionString.append( __DATE__ ); | 86 | palmtopVersionString.append( __DATE__ ); |