Diffstat (limited to 'noncore/settings/sysinfo/versioninfo.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/versioninfo.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/noncore/settings/sysinfo/versioninfo.cpp b/noncore/settings/sysinfo/versioninfo.cpp index 29c9a05..5105b42 100644 --- a/noncore/settings/sysinfo/versioninfo.cpp +++ b/noncore/settings/sysinfo/versioninfo.cpp | |||
@@ -117,48 +117,62 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) | |||
117 | QLabel *kernelVersion = new QLabel( container ); | 117 | QLabel *kernelVersion = new QLabel( container ); |
118 | kernelVersion->setText( kernelVersionString ); | 118 | kernelVersion->setText( kernelVersionString ); |
119 | hb2->addWidget( kernelVersion, 1, Qt::AlignTop + Qt::AlignLeft ); | 119 | hb2->addWidget( kernelVersion, 1, Qt::AlignTop + Qt::AlignLeft ); |
120 | 120 | ||
121 | 121 | ||
122 | QHBoxLayout *hb3 = new QHBoxLayout( vb ); | 122 | QHBoxLayout *hb3 = new QHBoxLayout( vb ); |
123 | hb3->setSpacing( 2 ); | 123 | hb3->setSpacing( 2 ); |
124 | 124 | ||
125 | QLabel *palmtopLogo3 = new QLabel( container ); | 125 | QLabel *palmtopLogo3 = new QLabel( container ); |
126 | 126 | ||
127 | OModel model = ODevice::inst()->model(); | 127 | OModel model = ODevice::inst()->model(); |
128 | QString modelPixmap = "sysinfo/"; | 128 | QString modelPixmap = "sysinfo/"; |
129 | if ( model == Model_Zaurus_SLC7x0 ) | 129 | if ( model == Model_Zaurus_SLC7x0 ) |
130 | modelPixmap += "zaurusc700"; | 130 | modelPixmap += "zaurusc700"; |
131 | else if ( model >= Model_Zaurus_SL5000 && model <= Model_Zaurus_SLB600 ) | 131 | else if ( model >= Model_Zaurus_SL5000 && model <= Model_Zaurus_SLB600 ) |
132 | modelPixmap += "zaurus5500"; | 132 | modelPixmap += "zaurus5500"; |
133 | else if ( model >= Model_iPAQ_H31xx && model <= Model_iPAQ_H5xxx ) | 133 | else if ( model >= Model_iPAQ_H31xx && model <= Model_iPAQ_H5xxx ) |
134 | modelPixmap += "ipaq3600"; | 134 | modelPixmap += "ipaq3600"; |
135 | else if ( model >= Model_SIMpad_CL4 && model <= Model_SIMpad_TSinus ) | 135 | else if ( model >= Model_SIMpad_CL4 && model <= Model_SIMpad_TSinus ) |
136 | modelPixmap += "simpad"; | 136 | modelPixmap += "simpad"; |
137 | else if ( model == Model_Jornada_56x ) | 137 | else if ( model == Model_Jornada_56x ) |
138 | modelPixmap += "jornada56x"; | 138 | modelPixmap += "jornada56x"; |
139 | else if ( model == Model_Jornada_720 ) | 139 | else if ( model == Model_Jornada_720 ) |
140 | modelPixmap += "jornada720"; | 140 | modelPixmap += "jornada720"; |
141 | else if ( model == Model_HTC_Universal ) | ||
142 | modelPixmap += "htcuniversal"; | ||
143 | else if ( model == Model_HTC_Blueangel ) | ||
144 | modelPixmap += "htcblueangel"; | ||
145 | else if ( model == Model_HTC_Apache ) | ||
146 | modelPixmap += "htcapache"; | ||
147 | else if ( model == Model_HTC_Magician ) | ||
148 | modelPixmap += "htcmagician"; | ||
149 | else if ( model == Model_HTC_Himalaya ) | ||
150 | modelPixmap += "htchimalaya"; | ||
151 | else if ( model == Model_HTC_Alpine ) | ||
152 | modelPixmap += "htcalpine"; | ||
153 | else if ( model == Model_HTC_Beetles ) | ||
154 | modelPixmap += "htcbeetles"; | ||
141 | else | 155 | else |
142 | modelPixmap += "pda"; | 156 | modelPixmap += "pda"; |
143 | 157 | ||
144 | QImage logo3 = Opie::Core::OResource::loadImage( modelPixmap ); | 158 | QImage logo3 = Opie::Core::OResource::loadImage( modelPixmap ); |
145 | 159 | ||
146 | int width = logo3.width(); | 160 | int width = logo3.width(); |
147 | int height = logo3.height(); | 161 | int height = logo3.height(); |
148 | float aspect = float( height ) / width; | 162 | float aspect = float( height ) / width; |
149 | logo3 = logo3.smoothScale( 50, 50.0 * aspect ); | 163 | logo3 = logo3.smoothScale( 50, 50.0 * aspect ); |
150 | 164 | ||
151 | QPixmap logo3Pixmap; | 165 | QPixmap logo3Pixmap; |
152 | logo3Pixmap.convertFromImage( logo3 ); | 166 | logo3Pixmap.convertFromImage( logo3 ); |
153 | palmtopLogo3->setPixmap( logo3Pixmap ); | 167 | palmtopLogo3->setPixmap( logo3Pixmap ); |
154 | palmtopLogo3->setFixedSize( 60, 100 ); | 168 | palmtopLogo3->setFixedSize( 60, 100 ); |
155 | hb3->addWidget( palmtopLogo3, 0, Qt::AlignTop + Qt::AlignLeft ); | 169 | hb3->addWidget( palmtopLogo3, 0, Qt::AlignTop + Qt::AlignLeft ); |
156 | 170 | ||
157 | QString systemString = "<qt><b>"; | 171 | QString systemString = "<qt><b>"; |
158 | systemString.append( ODevice::inst()->systemString() ); | 172 | systemString.append( ODevice::inst()->systemString() ); |
159 | systemString.append( "</b>" ); | 173 | systemString.append( "</b>" ); |
160 | systemString.append( tr( "<p>Version: " ) ); | 174 | systemString.append( tr( "<p>Version: " ) ); |
161 | systemString.append( ODevice::inst()->systemVersionString() ); | 175 | systemString.append( ODevice::inst()->systemVersionString() ); |
162 | systemString.append( tr( "<br>Model: " ) ); | 176 | systemString.append( tr( "<br>Model: " ) ); |
163 | systemString.append( ODevice::inst()->modelString() ); | 177 | systemString.append( ODevice::inst()->modelString() ); |
164 | systemString.append( tr( "<br>Vendor: " ) ); | 178 | systemString.append( tr( "<br>Vendor: " ) ); |