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 | |||
@@ -38,33 +38,33 @@ | |||
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>"); |