author | chicken <chicken> | 2004-05-20 13:50:03 (UTC) |
---|---|---|
committer | chicken <chicken> | 2004-05-20 13:50:03 (UTC) |
commit | 52164e57923870cb38030f2d2af2ef04877c35fa (patch) (unidiff) | |
tree | 1271e6c36ad162d5e03b306a3e9fece464db9ff2 /noncore/settings | |
parent | 47245723b724beb24183aa32b047d77f3469b7df (diff) | |
download | opie-52164e57923870cb38030f2d2af2ef04877c35fa.zip opie-52164e57923870cb38030f2d2af2ef04877c35fa.tar.gz opie-52164e57923870cb38030f2d2af2ef04877c35fa.tar.bz2 |
jornada 56x picture for opie sysinfo
-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 | |||
@@ -111,48 +111,50 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) | |||
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: " ) ); |