Diffstat (limited to 'noncore/settings/sysinfo/versioninfo.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/versioninfo.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/noncore/settings/sysinfo/versioninfo.cpp b/noncore/settings/sysinfo/versioninfo.cpp index 0ebcebe..4bebd06 100644 --- a/noncore/settings/sysinfo/versioninfo.cpp +++ b/noncore/settings/sysinfo/versioninfo.cpp | |||
@@ -1,58 +1,59 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
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 "versioninfo.h" | ||
22 | |||
23 | /* OPIE */ | ||
24 | #include <opie2/odevice.h> | ||
21 | #include <qpe/resource.h> | 25 | #include <qpe/resource.h> |
22 | #include <qpe/version.h> | 26 | #include <qpe/version.h> |
23 | 27 | ||
28 | /* QT */ | ||
24 | #include <qfile.h> | 29 | #include <qfile.h> |
25 | #include <qlabel.h> | 30 | #include <qlabel.h> |
26 | #include <qlayout.h> | 31 | #include <qlayout.h> |
27 | #include <qscrollview.h> | 32 | #include <qscrollview.h> |
28 | #include <qtextstream.h> | 33 | #include <qtextstream.h> |
29 | #include <qwhatsthis.h> | 34 | #include <qwhatsthis.h> |
30 | 35 | ||
31 | #include "versioninfo.h" | ||
32 | |||
33 | #include <opie2/odevice.h> | ||
34 | |||
35 | using namespace Opie; | 36 | using namespace Opie; |
36 | 37 | ||
37 | VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) | 38 | VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) |
38 | : QWidget( parent, name, f ) | 39 | : QWidget( parent, name, f ) |
39 | { | 40 | { |
40 | setMinimumSize( 200, 150 ); | 41 | setMinimumSize( 200, 150 ); |
41 | 42 | ||
42 | QVBoxLayout *tmpvb = new QVBoxLayout( this ); | 43 | QVBoxLayout *tmpvb = new QVBoxLayout( this ); |
43 | QScrollView *sv = new QScrollView( this ); | 44 | QScrollView *sv = new QScrollView( this ); |
44 | tmpvb->addWidget( sv, 0, 0 ); | 45 | tmpvb->addWidget( sv, 0, 0 ); |
45 | sv->setResizePolicy( QScrollView::AutoOneFit ); | 46 | sv->setResizePolicy( QScrollView::AutoOneFit ); |
46 | sv->setFrameStyle( QFrame::NoFrame ); | 47 | sv->setFrameStyle( QFrame::NoFrame ); |
47 | QWidget *container = new QWidget( sv->viewport() ); | 48 | QWidget *container = new QWidget( sv->viewport() ); |
48 | sv->addChild( container ); | 49 | sv->addChild( container ); |
49 | 50 | ||
50 | QVBoxLayout *vb = new QVBoxLayout( container, 3 ); | 51 | QVBoxLayout *vb = new QVBoxLayout( container, 3 ); |
51 | 52 | ||
52 | QString kernelVersionString; | 53 | QString kernelVersionString; |
53 | QFile file( "/proc/version" ); | 54 | QFile file( "/proc/version" ); |
54 | if ( file.open( IO_ReadOnly ) ) | 55 | if ( file.open( IO_ReadOnly ) ) |
55 | { | 56 | { |
56 | QTextStream t( &file ); | 57 | QTextStream t( &file ); |
57 | QStringList strList; | 58 | QStringList strList; |
58 | 59 | ||