summaryrefslogtreecommitdiff
path: root/noncore/settings
Unidiff
Diffstat (limited to 'noncore/settings') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/sysinfo/versioninfo.cpp43
1 files changed, 31 insertions, 12 deletions
diff --git a/noncore/settings/sysinfo/versioninfo.cpp b/noncore/settings/sysinfo/versioninfo.cpp
index be24baa..b3462f5 100644
--- a/noncore/settings/sysinfo/versioninfo.cpp
+++ b/noncore/settings/sysinfo/versioninfo.cpp
@@ -57,3 +57,4 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
57 QFile file( "/proc/version" ); 57 QFile file( "/proc/version" );
58 if ( file.open( IO_ReadOnly ) ) { 58 if ( file.open( IO_ReadOnly ) )
59 {
59 QTextStream t( &file ); 60 QTextStream t( &file );
@@ -64,3 +65,3 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
64 kernelVersionString.append( v ); 65 kernelVersionString.append( v );
65 kernelVersionString.append( "<p>" ); 66 kernelVersionString.append( "<br>" );
66 t >> v; 67 t >> v;
@@ -72,5 +73,5 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
72 73
73 QString palmtopVersionString = tr( "<b>Opie</b><p>Version: " ); 74 QString palmtopVersionString = "<qt>" + tr( "<b>Opie</b><p>Version: " );
74 palmtopVersionString.append( QPE_VERSION ); 75 palmtopVersionString.append( QPE_VERSION );
75 palmtopVersionString.append( "<p>" ); 76 palmtopVersionString.append( "<br>" );
76#ifdef QPE_VENDOR 77#ifdef QPE_VENDOR
@@ -80,5 +81,5 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
80#endif 81#endif
81 palmtopVersionString.append( "<qt>"+ tr( "Compiled by: " ) ); 82 palmtopVersionString.append( tr( "Compiled by: " ) );
82 palmtopVersionString.append( builder ); 83 palmtopVersionString.append( builder );
83 palmtopVersionString.append( "<p>" ); 84 palmtopVersionString.append( "<br>" );
84 palmtopVersionString.append( tr( "Built on: " ) ); 85 palmtopVersionString.append( tr( "Built on: " ) );
@@ -87,3 +88,2 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
87 88
88
89 QHBoxLayout *hb1 = new QHBoxLayout( vb ); 89 QHBoxLayout *hb1 = new QHBoxLayout( vb );
@@ -126,4 +126,23 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
126 QLabel *palmtopLogo3 = new QLabel( container ); 126 QLabel *palmtopLogo3 = new QLabel( container );
127 QImage logo3 = Resource::loadImage( "sysinfo/pda" ); 127
128 logo3 = logo3.smoothScale( 50, 55 ); 128 OModel model = ODevice::inst()->model();
129 QString modelPixmap = "sysinfo/";
130 if ( model == Model_Zaurus_SLC7x0 )
131 modelPixmap += "zaurusc700";
132 else if ( model >= Model_Zaurus_SLC7x0 && model <= Model_Zaurus_SLC7x0 )
133 modelPixmap += "zaurus5500";
134 else if ( model >= Model_iPAQ_H31xx && model <= Model_iPAQ_H5xxx )
135 modelPixmap += "ipaq3600";
136 else if ( model >= Model_SIMpad_CL4 && model <= Model_SIMpad_TSinus )
137 modelPixmap += "simpad";
138 else
139 modelPixmap += "pda";
140
141 QImage logo3 = Resource::loadImage( modelPixmap );
142
143 int width = logo3.width();
144 int height = logo3.height();
145 float aspect = float( height ) / width;
146 logo3 = logo3.smoothScale( 50, 50.0 * aspect );
147
129 QPixmap logo3Pixmap; 148 QPixmap logo3Pixmap;
@@ -131,3 +150,3 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
131 palmtopLogo3->setPixmap( logo3Pixmap ); 150 palmtopLogo3->setPixmap( logo3Pixmap );
132 palmtopLogo3->setFixedSize( 60, 60 ); 151 palmtopLogo3->setFixedSize( 60, 100 );
133 hb3->addWidget( palmtopLogo3, 0, Qt::AlignTop + Qt::AlignLeft ); 152 hb3->addWidget( palmtopLogo3, 0, Qt::AlignTop + Qt::AlignLeft );
@@ -139,5 +158,5 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
139 systemString.append( ODevice::inst()->systemVersionString() ); 158 systemString.append( ODevice::inst()->systemVersionString() );
140 systemString.append( tr( "<p>Model: " ) ); 159 systemString.append( tr( "<br>Model: " ) );
141 systemString.append( ODevice::inst()->modelString() ); 160 systemString.append( ODevice::inst()->modelString() );
142 systemString.append( tr( "<p>Vendor: " ) ); 161 systemString.append( tr( "<br>Vendor: " ) );
143 systemString.append( ODevice::inst()->vendorString() ); 162 systemString.append( ODevice::inst()->vendorString() );