author | mickeyl <mickeyl> | 2004-10-29 12:29:09 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-10-29 12:29:09 (UTC) |
commit | 464bf3433f6602bcf7f83342f0539bac8677ae64 (patch) (unidiff) | |
tree | 92fde973dd1a08ad45d8e950b645c3eae250be16 /core/applets/cardmon | |
parent | 1cde6419bcf60ec1ba23750106b2ec01474416fb (diff) | |
download | opie-464bf3433f6602bcf7f83342f0539bac8677ae64.zip opie-464bf3433f6602bcf7f83342f0539bac8677ae64.tar.gz opie-464bf3433f6602bcf7f83342f0539bac8677ae64.tar.bz2 |
smooth scale to proper icon size
-rw-r--r-- | core/applets/cardmon/cardmon.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/applets/cardmon/cardmon.cpp b/core/applets/cardmon/cardmon.cpp index d6ac616..53497df 100644 --- a/core/applets/cardmon/cardmon.cpp +++ b/core/applets/cardmon/cardmon.cpp | |||
@@ -39,26 +39,27 @@ using namespace Opie::Ui; | |||
39 | 39 | ||
40 | /* STD */ | 40 | /* STD */ |
41 | #include <stdio.h> | 41 | #include <stdio.h> |
42 | #include <unistd.h> | 42 | #include <unistd.h> |
43 | #include <stdlib.h> | 43 | #include <stdlib.h> |
44 | #include <string.h> | 44 | #include <string.h> |
45 | #include <fcntl.h> | 45 | #include <fcntl.h> |
46 | #if defined(_OS_LINUX_) || defined(Q_OS_LINUX) | 46 | #if defined(_OS_LINUX_) || defined(Q_OS_LINUX) |
47 | #include <sys/vfs.h> | 47 | #include <sys/vfs.h> |
48 | #include <mntent.h> | 48 | #include <mntent.h> |
49 | #endif | 49 | #endif |
50 | 50 | ||
51 | CardMonitor::CardMonitor( QWidget * parent ) : QWidget( parent ), | 51 | CardMonitor::CardMonitor( QWidget * parent ) : QWidget( parent ) |
52 | pm( Resource::loadPixmap( "cardmon/pcmcia" ) ) { | 52 | { |
53 | pm = Resource::loadImage( "cardmon/pcmcia").smoothScale(AppLnk::smallIconSize(), AppLnk::smallIconSize()); | ||
53 | 54 | ||
54 | QCopChannel * pcmciaChannel = new QCopChannel( "QPE/Card", this ); | 55 | QCopChannel * pcmciaChannel = new QCopChannel( "QPE/Card", this ); |
55 | connect( pcmciaChannel, | 56 | connect( pcmciaChannel, |
56 | SIGNAL( received(const QCString&,const QByteArray&) ), this, | 57 | SIGNAL( received(const QCString&,const QByteArray&) ), this, |
57 | SLOT( cardMessage(const QCString&,const QByteArray&) ) ); | 58 | SLOT( cardMessage(const QCString&,const QByteArray&) ) ); |
58 | 59 | ||
59 | QCopChannel *sdChannel = new QCopChannel( "QPE/Card", this ); | 60 | QCopChannel *sdChannel = new QCopChannel( "QPE/Card", this ); |
60 | connect( sdChannel, | 61 | connect( sdChannel, |
61 | SIGNAL( received(const QCString&,const QByteArray&) ), this, | 62 | SIGNAL( received(const QCString&,const QByteArray&) ), this, |
62 | SLOT( cardMessage(const QCString&,const QByteArray&) ) ); | 63 | SLOT( cardMessage(const QCString&,const QByteArray&) ) ); |
63 | 64 | ||
64 | cardInPcmcia0 = FALSE; | 65 | cardInPcmcia0 = FALSE; |