summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/sysinfo/versioninfo.cpp13
-rw-r--r--pics/tux-logo.pngbin2272 -> 30257 bytes
2 files changed, 3 insertions, 10 deletions
diff --git a/noncore/settings/sysinfo/versioninfo.cpp b/noncore/settings/sysinfo/versioninfo.cpp
index 517029b..3a37086 100644
--- a/noncore/settings/sysinfo/versioninfo.cpp
+++ b/noncore/settings/sysinfo/versioninfo.cpp
@@ -83,17 +83,10 @@ VersionInfo::VersionInfo( QWidget *parent, const char *name, WFlags f )
83 hb1->setSpacing( 2 ); 83 hb1->setSpacing( 2 );
84 84
85 QLabel *linuxLogo = new QLabel( this ); 85 QLabel *linuxLogo = new QLabel( this );
86
87 // Need to do this extra qpainter code with this image becuase for some
88 // reason it doesn't alpha belnd if directly converted to a pixmap
89 QPixmap logo2Pixmap( 60, 60 );
90 QColor bgColor = colorGroup().background();
91 QPainter painter( &logo2Pixmap );
92 painter.fillRect( QRect( 0, 0, 60, 60 ), QBrush( bgColor ) );
93 QImage logo2 = Resource::loadImage( "tux-logo" ); 86 QImage logo2 = Resource::loadImage( "tux-logo" );
94 logo2 = logo2.smoothScale( 40, 47 ); 87 logo2 = logo2.smoothScale( 55, 60 );
95 painter.drawImage( 0, 0, logo2 ); 88 QPixmap logo2Pixmap;
96 painter.end(); 89 logo2Pixmap.convertFromImage( logo2 );
97 linuxLogo->setPixmap( logo2Pixmap ); 90 linuxLogo->setPixmap( logo2Pixmap );
98 linuxLogo->setFixedSize( 60, 60 ); 91 linuxLogo->setFixedSize( 60, 60 );
99 hb2->addWidget( linuxLogo, 0, Qt::AlignTop + Qt::AlignLeft ); 92 hb2->addWidget( linuxLogo, 0, Qt::AlignTop + Qt::AlignLeft );
diff --git a/pics/tux-logo.png b/pics/tux-logo.png
index ad7c579..f405025 100644
--- a/pics/tux-logo.png
+++ b/pics/tux-logo.png
Binary files differ