-rw-r--r-- | core/applets/irdaapplet/irda.cpp | 25 |
1 files changed, 13 insertions, 12 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 | |||
@@ -20,4 +20,6 @@ | |||
20 | #include <opie2/otaskbarapplet.h> | 20 | #include <opie2/otaskbarapplet.h> |
21 | #include <qpe/applnk.h> | ||
21 | #include <qpe/resource.h> | 22 | #include <qpe/resource.h> |
22 | #include <qpe/qcopenvelope_qws.h> | 23 | #include <qpe/qcopenvelope_qws.h> |
24 | using namespace Opie::Ui; | ||
23 | 25 | ||
@@ -39,3 +41,2 @@ | |||
39 | 41 | ||
40 | using namespace Opie::Ui; | ||
41 | IrdaApplet::IrdaApplet ( QWidget *parent, const char *name ) | 42 | IrdaApplet::IrdaApplet ( QWidget *parent, const char *name ) |
@@ -43,11 +44,11 @@ IrdaApplet::IrdaApplet ( QWidget *parent, const char *name ) | |||
43 | { | 44 | { |
44 | setFixedHeight ( 18 ); | 45 | setFixedHeight( AppLnk::smallIconSize() ); |
45 | setFixedWidth ( 14 ); | 46 | setFixedWidth( AppLnk::smallIconSize() ); |
46 | 47 | ||
47 | m_sockfd = ::socket ( PF_INET, SOCK_DGRAM, IPPROTO_IP ); | 48 | m_sockfd = ::socket ( PF_INET, SOCK_DGRAM, IPPROTO_IP ); |
48 | 49 | ||
49 | m_irdaOnPixmap = Resource::loadPixmap( "irdaapplet/irdaon" ); | 50 | m_irdaOnPixmap = Resource::loadImage( "irdaapplet/irdaon" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize()); |
50 | m_irdaOffPixmap = Resource::loadPixmap( "irdaapplet/irdaoff" ); | 51 | m_irdaOffPixmap = Resource::loadImage( "irdaapplet/irdaoff" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize()); |
51 | m_irdaDiscoveryOnPixmap = Resource::loadPixmap( "irdaapplet/magglass" ); | 52 | m_irdaDiscoveryOnPixmap = Resource::loadImage( "irdaapplet/magglass" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize()); |
52 | m_receiveActivePixmap = Resource::loadPixmap( "irdaapplet/receive" ); | 53 | m_receiveActivePixmap = Resource::loadImage( "irdaapplet/receive" ).smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize()); |
53 | 54 | ||
@@ -316,11 +317,11 @@ void IrdaApplet::paintEvent ( QPaintEvent * ) | |||
316 | { | 317 | { |
317 | QPainter p ( this ); | 318 | QPainter p( this ); |
318 | 319 | ||
319 | p. drawPixmap ( 0, 1, m_irda_active ? m_irdaOnPixmap : m_irdaOffPixmap ); | 320 | p.drawPixmap( 0, 1, m_irda_active ? m_irdaOnPixmap : m_irdaOffPixmap ); |
320 | 321 | ||
321 | if ( m_irda_discovery_active ) | 322 | if ( m_irda_discovery_active ) |
322 | p. drawPixmap( 0, 1, m_irdaDiscoveryOnPixmap ); | 323 | p.drawPixmap( 0, 1, m_irdaDiscoveryOnPixmap ); |
323 | 324 | ||
324 | if ( m_receive_active ) | 325 | if ( m_receive_active ) |
325 | p. drawPixmap( 0, 1, m_receiveActivePixmap ); | 326 | p.drawPixmap( 0, 1, m_receiveActivePixmap ); |
326 | } | 327 | } |