author | llornkcor <llornkcor> | 2002-12-11 11:59:10 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-12-11 11:59:10 (UTC) |
commit | d7b877a5532e6377f034514c89c0b45b96265471 (patch) (unidiff) | |
tree | 6afe5e4f0af34f8cec9dceb9a12609467d191de6 | |
parent | 4cf77382173b52d62b164d660e300b299e4cafe7 (diff) | |
download | opie-d7b877a5532e6377f034514c89c0b45b96265471.zip opie-d7b877a5532e6377f034514c89c0b45b96265471.tar.gz opie-d7b877a5532e6377f034514c89c0b45b96265471.tar.bz2 |
changed to new pda icon
-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 658f371..9a444df 100644 --- a/noncore/settings/sysinfo/versioninfo.cpp +++ b/noncore/settings/sysinfo/versioninfo.cpp | |||
@@ -20,125 +20,125 @@ | |||
20 | 20 | ||
21 | #include <qpe/resource.h> | 21 | #include <qpe/resource.h> |
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 <qtextstream.h> | 30 | #include <qtextstream.h> |
31 | #include <qtimer.h> | 31 | #include <qtimer.h> |
32 | #include <qwhatsthis.h> | 32 | #include <qwhatsthis.h> |
33 | 33 | ||
34 | #include "versioninfo.h" | 34 | #include "versioninfo.h" |
35 | 35 | ||
36 | #include <opie/odevice.h> | 36 | #include <opie/odevice.h> |
37 | 37 | ||
38 | using namespace Opie; | 38 | using namespace Opie; |
39 | 39 | ||
40 | VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) | 40 | VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) |
41 | : QWidget( parent, name, f ) | 41 | : QWidget( parent, name, f ) |
42 | { | 42 | { |
43 | setMinimumSize( 200, 150 ); | 43 | setMinimumSize( 200, 150 ); |
44 | 44 | ||
45 | QVBoxLayout *vb = new QVBoxLayout( this, 4 ); | 45 | QVBoxLayout *vb = new QVBoxLayout( this, 4 ); |
46 | 46 | ||
47 | QString kernelVersionString; | 47 | QString kernelVersionString; |
48 | QFile file( "/proc/version" ); | 48 | QFile file( "/proc/version" ); |
49 | if ( file.open( IO_ReadOnly ) ) { | 49 | if ( file.open( IO_ReadOnly ) ) { |
50 | QTextStream t( &file ); | 50 | QTextStream t( &file ); |
51 | QString v; | 51 | QString v; |
52 | t >> v; t >> v; t >> v; | 52 | t >> v; t >> v; t >> v; |
53 | v = v.left( 20 ); | 53 | v = v.left( 20 ); |
54 | kernelVersionString = tr( "<b>Linux Kernel</b><p>Version: " ); | 54 | kernelVersionString = tr( "<b>Linux Kernel</b><p>Version: " ); |
55 | kernelVersionString.append( v ); | 55 | kernelVersionString.append( v ); |
56 | kernelVersionString.append( "<p>" ); | 56 | kernelVersionString.append( "<p>" ); |
57 | t >> v; | 57 | t >> v; |
58 | kernelVersionString.append( tr( "Compiled by: " ) ); | 58 | kernelVersionString.append( tr( "Compiled by: " ) ); |
59 | kernelVersionString.append( v ); | 59 | kernelVersionString.append( v ); |
60 | file.close(); | 60 | file.close(); |
61 | } | 61 | } |
62 | 62 | ||
63 | QString palmtopVersionString = tr( "<b>Opie</b><p>Version: " ); | 63 | QString palmtopVersionString = tr( "<b>Opie</b><p>Version: " ); |
64 | palmtopVersionString.append( QPE_VERSION ); | 64 | palmtopVersionString.append( QPE_VERSION ); |
65 | palmtopVersionString.append( "<p>" ); | 65 | palmtopVersionString.append( "<p>" ); |
66 | #ifdef QPE_VENDOR | 66 | #ifdef QPE_VENDOR |
67 | QString builder = QPE_VENDOR; | 67 | QString builder = QPE_VENDOR; |
68 | #else | 68 | #else |
69 | QString builder = "Unknown"; | 69 | QString builder = "Unknown"; |
70 | #endif | 70 | #endif |
71 | palmtopVersionString.append( tr( "Compiled by: " ) ); | 71 | palmtopVersionString.append( tr( "Compiled by: " ) ); |
72 | palmtopVersionString.append( builder ); | 72 | palmtopVersionString.append( builder ); |
73 | palmtopVersionString.append( "<p>" ); | 73 | palmtopVersionString.append( "<p>" ); |
74 | palmtopVersionString.append( tr( "Built on: " ) ); | 74 | palmtopVersionString.append( tr( "Built on: " ) ); |
75 | palmtopVersionString.append( __DATE__ ); | 75 | palmtopVersionString.append( __DATE__ ); |
76 | 76 | ||
77 | 77 | ||
78 | QHBoxLayout *hb1 = new QHBoxLayout( vb ); | 78 | QHBoxLayout *hb1 = new QHBoxLayout( vb ); |
79 | hb1->setSpacing( 2 ); | 79 | hb1->setSpacing( 2 ); |
80 | 80 | ||
81 | QLabel *palmtopLogo = new QLabel( this ); | 81 | QLabel *palmtopLogo = new QLabel( this ); |
82 | QImage logo1 = Resource::loadImage( "logo/opielogo" ); | 82 | QImage logo1 = Resource::loadImage( "logo/opielogo" ); |
83 | logo1 = logo1.smoothScale( 50, 55 ); | 83 | logo1 = logo1.smoothScale( 50, 55 ); |
84 | QPixmap logo1Pixmap; | 84 | QPixmap logo1Pixmap; |
85 | logo1Pixmap.convertFromImage( logo1 ); | 85 | logo1Pixmap.convertFromImage( logo1 ); |
86 | palmtopLogo->setPixmap( logo1Pixmap ); | 86 | palmtopLogo->setPixmap( logo1Pixmap ); |
87 | palmtopLogo->setFixedSize( 60, 60 ); | 87 | palmtopLogo->setFixedSize( 60, 60 ); |
88 | hb1->addWidget( palmtopLogo, 0, Qt::AlignTop + Qt::AlignLeft ); | 88 | hb1->addWidget( palmtopLogo, 0, Qt::AlignTop + Qt::AlignLeft ); |
89 | 89 | ||
90 | QLabel *palmtopVersion = new QLabel( this ); | 90 | QLabel *palmtopVersion = new QLabel( this ); |
91 | palmtopVersion->setText( palmtopVersionString ); | 91 | palmtopVersion->setText( palmtopVersionString ); |
92 | hb1->addWidget( palmtopVersion, 1, Qt::AlignTop + Qt::AlignLeft ); | 92 | hb1->addWidget( palmtopVersion, 1, Qt::AlignTop + Qt::AlignLeft ); |
93 | 93 | ||
94 | 94 | ||
95 | QHBoxLayout *hb2 = new QHBoxLayout( vb ); | 95 | QHBoxLayout *hb2 = new QHBoxLayout( vb ); |
96 | hb1->setSpacing( 2 ); | 96 | hb1->setSpacing( 2 ); |
97 | 97 | ||
98 | QLabel *linuxLogo = new QLabel( this ); | 98 | QLabel *linuxLogo = new QLabel( this ); |
99 | QImage logo2 = Resource::loadImage( "logo/tux-logo" ); | 99 | QImage logo2 = Resource::loadImage( "logo/tux-logo" ); |
100 | logo2 = logo2.smoothScale( 55, 60 ); | 100 | logo2 = logo2.smoothScale( 55, 60 ); |
101 | QPixmap logo2Pixmap; | 101 | QPixmap logo2Pixmap; |
102 | logo2Pixmap.convertFromImage( logo2 ); | 102 | logo2Pixmap.convertFromImage( logo2 ); |
103 | linuxLogo->setPixmap( logo2Pixmap ); | 103 | linuxLogo->setPixmap( logo2Pixmap ); |
104 | linuxLogo->setFixedSize( 60, 60 ); | 104 | linuxLogo->setFixedSize( 60, 60 ); |
105 | hb2->addWidget( linuxLogo, 0, Qt::AlignTop + Qt::AlignLeft ); | 105 | hb2->addWidget( linuxLogo, 0, Qt::AlignTop + Qt::AlignLeft ); |
106 | 106 | ||
107 | QLabel *kernelVersion = new QLabel( this ); | 107 | QLabel *kernelVersion = new QLabel( this ); |
108 | kernelVersion->setText( kernelVersionString ); | 108 | kernelVersion->setText( kernelVersionString ); |
109 | hb2->addWidget( kernelVersion, 1, Qt::AlignTop + Qt::AlignLeft ); | 109 | hb2->addWidget( kernelVersion, 1, Qt::AlignTop + Qt::AlignLeft ); |
110 | 110 | ||
111 | 111 | ||
112 | QHBoxLayout *hb3 = new QHBoxLayout( vb ); | 112 | QHBoxLayout *hb3 = new QHBoxLayout( vb ); |
113 | hb3->setSpacing( 2 ); | 113 | hb3->setSpacing( 2 ); |
114 | 114 | ||
115 | QLabel *palmtopLogo3 = new QLabel( this ); | 115 | QLabel *palmtopLogo3 = new QLabel( this ); |
116 | QImage logo3 = Resource::loadImage( "SystemInfo" ); | 116 | QImage logo3 = Resource::loadImage( "sysinfo/pda" ); |
117 | logo3 = logo3.smoothScale( 50, 55 ); | 117 | logo3 = logo3.smoothScale( 50, 55 ); |
118 | QPixmap logo3Pixmap; | 118 | QPixmap logo3Pixmap; |
119 | logo3Pixmap.convertFromImage( logo3 ); | 119 | logo3Pixmap.convertFromImage( logo3 ); |
120 | palmtopLogo3->setPixmap( logo3Pixmap ); | 120 | palmtopLogo3->setPixmap( logo3Pixmap ); |
121 | palmtopLogo3->setFixedSize( 60, 60 ); | 121 | palmtopLogo3->setFixedSize( 60, 60 ); |
122 | hb3->addWidget( palmtopLogo3, 0, Qt::AlignTop + Qt::AlignLeft ); | 122 | hb3->addWidget( palmtopLogo3, 0, Qt::AlignTop + Qt::AlignLeft ); |
123 | 123 | ||
124 | QString systemString = "<b>"; | 124 | QString systemString = "<b>"; |
125 | systemString.append( ODevice::inst()->systemString() ); | 125 | systemString.append( ODevice::inst()->systemString() ); |
126 | systemString.append( "</b>" ); | 126 | systemString.append( "</b>" ); |
127 | systemString.append( tr( "<p>Version: " ) ); | 127 | systemString.append( tr( "<p>Version: " ) ); |
128 | systemString.append( ODevice::inst()->systemVersionString() ); | 128 | systemString.append( ODevice::inst()->systemVersionString() ); |
129 | systemString.append( tr( "<p>Model: " ) ); | 129 | systemString.append( tr( "<p>Model: " ) ); |
130 | systemString.append( ODevice::inst()->modelString() ); | 130 | systemString.append( ODevice::inst()->modelString() ); |
131 | systemString.append( tr( "<p>Vendor: " ) ); | 131 | systemString.append( tr( "<p>Vendor: " ) ); |
132 | systemString.append( ODevice::inst()->vendorString() ); | 132 | systemString.append( ODevice::inst()->vendorString() ); |
133 | 133 | ||
134 | QLabel *systemVersion = new QLabel( this ); | 134 | QLabel *systemVersion = new QLabel( this ); |
135 | systemVersion->setText( systemString ); | 135 | systemVersion->setText( systemString ); |
136 | hb3->addWidget( systemVersion, 1, Qt::AlignTop + Qt::AlignLeft ); | 136 | hb3->addWidget( systemVersion, 1, Qt::AlignTop + Qt::AlignLeft ); |
137 | 137 | ||
138 | QWhatsThis::add( this, tr( "This page shows the current versions of Opie, the Linux kernel and distribution running on this handheld device." ) ); | 138 | QWhatsThis::add( this, tr( "This page shows the current versions of Opie, the Linux kernel and distribution running on this handheld device." ) ); |
139 | } | 139 | } |
140 | 140 | ||
141 | VersionInfo::~VersionInfo() | 141 | VersionInfo::~VersionInfo() |
142 | { | 142 | { |
143 | } | 143 | } |
144 | 144 | ||