-rw-r--r-- | noncore/settings/sysinfo/versioninfo.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/noncore/settings/sysinfo/versioninfo.cpp b/noncore/settings/sysinfo/versioninfo.cpp index 1f5739a..e92b36c 100644 --- a/noncore/settings/sysinfo/versioninfo.cpp +++ b/noncore/settings/sysinfo/versioninfo.cpp | |||
@@ -21,6 +21,7 @@ | |||
21 | #include <qpe/resource.h> | 21 | #include <qpe/resource.h> |
22 | #include <qpe/version.h> | 22 | #include <qpe/version.h> |
23 | 23 | ||
24 | |||
24 | #include <qlabel.h> | 25 | #include <qlabel.h> |
25 | #include <qpixmap.h> | 26 | #include <qpixmap.h> |
26 | #include <qpainter.h> | 27 | #include <qpainter.h> |
@@ -31,6 +32,9 @@ | |||
31 | #include <qlayout.h> | 32 | #include <qlayout.h> |
32 | #include "versioninfo.h" | 33 | #include "versioninfo.h" |
33 | 34 | ||
35 | #include <opie/odevice.h> | ||
36 | using namespace Opie; | ||
37 | |||
34 | VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) | 38 | VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) |
35 | : QWidget( parent, name, f ) | 39 | : QWidget( parent, name, f ) |
36 | { | 40 | { |
@@ -94,6 +98,29 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f ) | |||
94 | QLabel *kernelVersion = new QLabel( this ); | 98 | QLabel *kernelVersion = new QLabel( this ); |
95 | kernelVersion->setText( kernelVersionString ); | 99 | kernelVersion->setText( kernelVersionString ); |
96 | hb2->addWidget( kernelVersion, 1, Qt::AlignTop + Qt::AlignLeft ); | 100 | hb2->addWidget( kernelVersion, 1, Qt::AlignTop + Qt::AlignLeft ); |
101 | |||
102 | |||
103 | QHBoxLayout *hb3 = new QHBoxLayout( vb ); | ||
104 | hb3->setSpacing( 2 ); | ||
105 | |||
106 | QLabel *palmtopLogo3 = new QLabel( this ); | ||
107 | QImage logo3 = Resource::loadImage( "SystemInfo" ); | ||
108 | logo3 = logo3.smoothScale( 50, 55 ); | ||
109 | QPixmap logo3Pixmap; | ||
110 | logo3Pixmap.convertFromImage( logo3 ); | ||
111 | palmtopLogo3->setPixmap( logo3Pixmap ); | ||
112 | palmtopLogo3->setFixedSize( 60, 60 ); | ||
113 | hb3->addWidget( palmtopLogo3, 0, Qt::AlignTop + Qt::AlignLeft ); | ||
114 | |||
115 | systemString = tr( "<b>System</b><p>System: ") + ODevice::inst()->modelString() | ||
116 | +tr("<p>Version: " ) + ODevice::inst()->vendorString() | ||
117 | +tr("<p>Model: ") + ODevice::inst()->systemString() | ||
118 | +tr("<p>Vendor: ") + ODevice::inst()->systemVersionString(); | ||
119 | |||
120 | QLabel *systemVersion = new QLabel( this ); | ||
121 | systemVersion->setText( systemString ); | ||
122 | hb3->addWidget( systemVersion, 1, Qt::AlignTop + Qt::AlignLeft ); | ||
123 | |||
97 | } | 124 | } |
98 | 125 | ||
99 | VersionInfo::~VersionInfo() | 126 | VersionInfo::~VersionInfo() |