Diffstat (limited to 'noncore/settings/sysinfo/versioninfo.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/versioninfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/settings/sysinfo/versioninfo.cpp b/noncore/settings/sysinfo/versioninfo.cpp index 6764aa6..1b811df 100644 --- a/noncore/settings/sysinfo/versioninfo.cpp +++ b/noncore/settings/sysinfo/versioninfo.cpp | |||
@@ -87,86 +87,88 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) | |||
87 | hb1->setSpacing( 2 ); | 87 | hb1->setSpacing( 2 ); |
88 | 88 | ||
89 | QLabel *palmtopLogo = new QLabel( container ); | 89 | QLabel *palmtopLogo = new QLabel( container ); |
90 | QImage logo1 = Resource::loadImage( "logo/opielogo" ); | 90 | QImage logo1 = Resource::loadImage( "logo/opielogo" ); |
91 | logo1 = logo1.smoothScale( 50, 55 ); | 91 | logo1 = logo1.smoothScale( 50, 55 ); |
92 | QPixmap logo1Pixmap; | 92 | QPixmap logo1Pixmap; |
93 | logo1Pixmap.convertFromImage( logo1 ); | 93 | logo1Pixmap.convertFromImage( logo1 ); |
94 | palmtopLogo->setPixmap( logo1Pixmap ); | 94 | palmtopLogo->setPixmap( logo1Pixmap ); |
95 | palmtopLogo->setFixedSize( 60, 60 ); | 95 | palmtopLogo->setFixedSize( 60, 60 ); |
96 | hb1->addWidget( palmtopLogo, 0, Qt::AlignTop + Qt::AlignLeft ); | 96 | hb1->addWidget( palmtopLogo, 0, Qt::AlignTop + Qt::AlignLeft ); |
97 | 97 | ||
98 | QLabel *palmtopVersion = new QLabel( container ); | 98 | QLabel *palmtopVersion = new QLabel( container ); |
99 | palmtopVersion->setText( palmtopVersionString ); | 99 | palmtopVersion->setText( palmtopVersionString ); |
100 | hb1->addWidget( palmtopVersion, 1, Qt::AlignTop + Qt::AlignLeft ); | 100 | hb1->addWidget( palmtopVersion, 1, Qt::AlignTop + Qt::AlignLeft ); |
101 | 101 | ||
102 | 102 | ||
103 | QHBoxLayout *hb2 = new QHBoxLayout( vb ); | 103 | QHBoxLayout *hb2 = new QHBoxLayout( vb ); |
104 | hb1->setSpacing( 2 ); | 104 | hb1->setSpacing( 2 ); |
105 | 105 | ||
106 | QLabel *linuxLogo = new QLabel( container ); | 106 | QLabel *linuxLogo = new QLabel( container ); |
107 | QImage logo2 = Resource::loadImage( "logo/tux-logo" ); | 107 | QImage logo2 = Resource::loadImage( "logo/tux-logo" ); |
108 | logo2 = logo2.smoothScale( 55, 60 ); | 108 | logo2 = logo2.smoothScale( 55, 60 ); |
109 | QPixmap logo2Pixmap; | 109 | QPixmap logo2Pixmap; |
110 | logo2Pixmap.convertFromImage( logo2 ); | 110 | logo2Pixmap.convertFromImage( logo2 ); |
111 | linuxLogo->setPixmap( logo2Pixmap ); | 111 | linuxLogo->setPixmap( logo2Pixmap ); |
112 | linuxLogo->setFixedSize( 60, 60 ); | 112 | linuxLogo->setFixedSize( 60, 60 ); |
113 | hb2->addWidget( linuxLogo, 0, Qt::AlignTop + Qt::AlignLeft ); | 113 | hb2->addWidget( linuxLogo, 0, Qt::AlignTop + Qt::AlignLeft ); |
114 | 114 | ||
115 | QLabel *kernelVersion = new QLabel( container ); | 115 | QLabel *kernelVersion = new QLabel( container ); |
116 | kernelVersion->setText( kernelVersionString ); | 116 | kernelVersion->setText( kernelVersionString ); |
117 | hb2->addWidget( kernelVersion, 1, Qt::AlignTop + Qt::AlignLeft ); | 117 | hb2->addWidget( kernelVersion, 1, Qt::AlignTop + Qt::AlignLeft ); |
118 | 118 | ||
119 | 119 | ||
120 | QHBoxLayout *hb3 = new QHBoxLayout( vb ); | 120 | QHBoxLayout *hb3 = new QHBoxLayout( vb ); |
121 | hb3->setSpacing( 2 ); | 121 | hb3->setSpacing( 2 ); |
122 | 122 | ||
123 | QLabel *palmtopLogo3 = new QLabel( container ); | 123 | QLabel *palmtopLogo3 = new QLabel( container ); |
124 | 124 | ||
125 | OModel model = ODevice::inst()->model(); | 125 | OModel model = ODevice::inst()->model(); |
126 | QString modelPixmap = "sysinfo/"; | 126 | QString modelPixmap = "sysinfo/"; |
127 | if ( model == Model_Zaurus_SLC7x0 ) | 127 | if ( model == Model_Zaurus_SLC7x0 ) |
128 | modelPixmap += "zaurusc700"; | 128 | modelPixmap += "zaurusc700"; |
129 | else if ( model >= Model_Zaurus_SL5000 && model <= Model_Zaurus_SLB600 ) | 129 | else if ( model >= Model_Zaurus_SL5000 && model <= Model_Zaurus_SLB600 ) |
130 | modelPixmap += "zaurus5500"; | 130 | modelPixmap += "zaurus5500"; |
131 | else if ( model >= Model_iPAQ_H31xx && model <= Model_iPAQ_H5xxx ) | 131 | else if ( model >= Model_iPAQ_H31xx && model <= Model_iPAQ_H5xxx ) |
132 | modelPixmap += "ipaq3600"; | 132 | modelPixmap += "ipaq3600"; |
133 | else if ( model >= Model_SIMpad_CL4 && model <= Model_SIMpad_TSinus ) | 133 | else if ( model >= Model_SIMpad_CL4 && model <= Model_SIMpad_TSinus ) |
134 | modelPixmap += "simpad"; | 134 | modelPixmap += "simpad"; |
135 | else if ( model == Model_Jornada_56x ) | ||
136 | modelPixmap += "jornada56x"; | ||
135 | else | 137 | else |
136 | modelPixmap += "pda"; | 138 | modelPixmap += "pda"; |
137 | 139 | ||
138 | QImage logo3 = Resource::loadImage( modelPixmap ); | 140 | QImage logo3 = Resource::loadImage( modelPixmap ); |
139 | 141 | ||
140 | int width = logo3.width(); | 142 | int width = logo3.width(); |
141 | int height = logo3.height(); | 143 | int height = logo3.height(); |
142 | float aspect = float( height ) / width; | 144 | float aspect = float( height ) / width; |
143 | logo3 = logo3.smoothScale( 50, 50.0 * aspect ); | 145 | logo3 = logo3.smoothScale( 50, 50.0 * aspect ); |
144 | 146 | ||
145 | QPixmap logo3Pixmap; | 147 | QPixmap logo3Pixmap; |
146 | logo3Pixmap.convertFromImage( logo3 ); | 148 | logo3Pixmap.convertFromImage( logo3 ); |
147 | palmtopLogo3->setPixmap( logo3Pixmap ); | 149 | palmtopLogo3->setPixmap( logo3Pixmap ); |
148 | palmtopLogo3->setFixedSize( 60, 100 ); | 150 | palmtopLogo3->setFixedSize( 60, 100 ); |
149 | hb3->addWidget( palmtopLogo3, 0, Qt::AlignTop + Qt::AlignLeft ); | 151 | hb3->addWidget( palmtopLogo3, 0, Qt::AlignTop + Qt::AlignLeft ); |
150 | 152 | ||
151 | QString systemString = "<qt><b>"; | 153 | QString systemString = "<qt><b>"; |
152 | systemString.append( ODevice::inst()->systemString() ); | 154 | systemString.append( ODevice::inst()->systemString() ); |
153 | systemString.append( "</b>" ); | 155 | systemString.append( "</b>" ); |
154 | systemString.append( tr( "<p>Version: " ) ); | 156 | systemString.append( tr( "<p>Version: " ) ); |
155 | systemString.append( ODevice::inst()->systemVersionString() ); | 157 | systemString.append( ODevice::inst()->systemVersionString() ); |
156 | systemString.append( tr( "<br>Model: " ) ); | 158 | systemString.append( tr( "<br>Model: " ) ); |
157 | systemString.append( ODevice::inst()->modelString() ); | 159 | systemString.append( ODevice::inst()->modelString() ); |
158 | systemString.append( tr( "<br>Vendor: " ) ); | 160 | systemString.append( tr( "<br>Vendor: " ) ); |
159 | systemString.append( ODevice::inst()->vendorString() ); | 161 | systemString.append( ODevice::inst()->vendorString() ); |
160 | systemString.append("</qt>"); | 162 | systemString.append("</qt>"); |
161 | 163 | ||
162 | QLabel *systemVersion = new QLabel( container ); | 164 | QLabel *systemVersion = new QLabel( container ); |
163 | systemVersion->setText( systemString ); | 165 | systemVersion->setText( systemString ); |
164 | hb3->addWidget( systemVersion, 1, Qt::AlignTop + Qt::AlignLeft ); | 166 | hb3->addWidget( systemVersion, 1, Qt::AlignTop + Qt::AlignLeft ); |
165 | 167 | ||
166 | QWhatsThis::add( this, tr( "This page shows the current versions of Opie, the Linux kernel and distribution running on this handheld device." ) ); | 168 | QWhatsThis::add( this, tr( "This page shows the current versions of Opie, the Linux kernel and distribution running on this handheld device." ) ); |
167 | } | 169 | } |
168 | 170 | ||
169 | VersionInfo::~VersionInfo() | 171 | VersionInfo::~VersionInfo() |
170 | { | 172 | { |
171 | } | 173 | } |
172 | 174 | ||