From 667cdc3c4c05f465244de26580be8808a0eb2b0e Mon Sep 17 00:00:00 2001 From: mickeyl Date: Mon, 05 Jan 2004 00:23:51 +0000 Subject: use smallIconSize, not hardcoded 14 --- diff --git a/libopie/otabwidget.cpp b/libopie/otabwidget.cpp index 1b8c085..3a9a5ec 100644 --- a/libopie/otabwidget.cpp +++ b/libopie/otabwidget.cpp @@ -31,6 +31,7 @@ #include "otabwidget.h" +#include #include #include #include @@ -326,10 +327,9 @@ void OTabWidget::slotTabListSelected( int index ) QPixmap OTabWidget::loadSmooth( const QString &name ) { - QImage image = Resource::loadImage( name ); - QPixmap pixmap; - pixmap.convertFromImage( image.smoothScale( 14, 14 ) ); - return pixmap; + QPixmap p; + p.convertFromImage( Resource::loadImage( name ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); + return p; } void OTabWidget::selectTab( OTabInfo *tab ) -- cgit v0.9.0.2