author | mickeyl <mickeyl> | 2004-10-30 13:53:58 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-10-30 13:53:58 (UTC) |
commit | 0fc9ce0c22bad09470a18eb6d084c6042c914ed8 (patch) (side-by-side diff) | |
tree | 99e8ac2db000ce606b497ded9146ddae691d27a7 /core/applets/irdaapplet | |
parent | 3fcdb4e6f576f5e3eec072efe87a44bf58fdbf25 (diff) | |
download | opie-0fc9ce0c22bad09470a18eb6d084c6042c914ed8.zip opie-0fc9ce0c22bad09470a18eb6d084c6042c914ed8.tar.gz opie-0fc9ce0c22bad09470a18eb6d084c6042c914ed8.tar.bz2 |
remove hardcoded icon size here as well
-rw-r--r-- | core/applets/irdaapplet/irda.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/core/applets/irdaapplet/irda.cpp b/core/applets/irdaapplet/irda.cpp index 267714e..6148308 100644 --- a/core/applets/irdaapplet/irda.cpp +++ b/core/applets/irdaapplet/irda.cpp @@ -15,14 +15,16 @@ **********************************************************************/ #include "irda.h" /* OPIE */ #include <opie2/otaskbarapplet.h> +#include <qpe/applnk.h> #include <qpe/resource.h> #include <qpe/qcopenvelope_qws.h> +using namespace Opie::Ui; /* QT */ #include <qpainter.h> #include <qfile.h> #include <qtimer.h> #include <qtextstream.h> @@ -34,25 +36,24 @@ #include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> //=========================================================================== -using namespace Opie::Ui; IrdaApplet::IrdaApplet ( QWidget *parent, const char *name ) : QWidget ( parent, name ) { - setFixedHeight ( 18 ); - setFixedWidth ( 14 ); + setFixedHeight( AppLnk::smallIconSize() ); + setFixedWidth( AppLnk::smallIconSize() ); m_sockfd = ::socket ( PF_INET, SOCK_DGRAM, IPPROTO_IP ); - m_irdaOnPixmap = Resource::loadPixmap( "irdaapplet/irdaon" ); - m_irdaOffPixmap = Resource::loadPixmap( "irdaapplet/irdaoff" ); - m_irdaDiscoveryOnPixmap = Resource::loadPixmap( "irdaapplet/magglass" ); - m_receiveActivePixmap = Resource::loadPixmap( "irdaapplet/receive" ); + m_irdaOnPixmap = Resource::loadImage( "irdaapplet/irdaon" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize()); + m_irdaOffPixmap = Resource::loadImage( "irdaapplet/irdaoff" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize()); + m_irdaDiscoveryOnPixmap = Resource::loadImage( "irdaapplet/magglass" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize()); + m_receiveActivePixmap = Resource::loadImage( "irdaapplet/receive" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize()); m_irda_active = false; m_irda_discovery_active = false; m_receive_active = false; m_receive_state_changed = false; m_popup = 0; |