From 98af15f829dadf9083e5e897328ab58e5e82a0fd Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 03 Mar 2005 21:40:33 +0000 Subject: -Scale the image to the AppLnk::smallIconSize -Set the size of the wait widget to AppLnk::smallIconSize --- diff --git a/core/launcher/wait.cpp b/core/launcher/wait.cpp index a5b329d..523819d 100644 --- a/core/launcher/wait.cpp +++ b/core/launcher/wait.cpp @@ -20,20 +20,26 @@ #include "wait.h" -#include - #include - +#include +#include Wait *lastWaitObject = NULL; using namespace Opie::Ui; Wait::Wait( QWidget *parent ) : QWidget( parent ), - pm( Resource::loadPixmap( "wait" ) ), waiting( FALSE ) + waiting( FALSE ) { - setFixedSize( pm.size() ); + + QSize size( AppLnk::smallIconSize(), AppLnk::smallIconSize() ); + setFixedSize( size ); + + QImage img = Resource::loadImage( "wait" ); + img = img.smoothScale( size.width(), size.height() ); + pm.convertFromImage( img ); + lastWaitObject = this; m_centralWait = new OWait( 0l ); m_centralWait->hide(); -- cgit v0.9.0.2