summaryrefslogtreecommitdiff
authormickeyl <mickeyl>2004-10-30 13:53:58 (UTC)
committer mickeyl <mickeyl>2004-10-30 13:53:58 (UTC)
commit0fc9ce0c22bad09470a18eb6d084c6042c914ed8 (patch) (unidiff)
tree99e8ac2db000ce606b497ded9146ddae691d27a7
parent3fcdb4e6f576f5e3eec072efe87a44bf58fdbf25 (diff)
downloadopie-0fc9ce0c22bad09470a18eb6d084c6042c914ed8.zip
opie-0fc9ce0c22bad09470a18eb6d084c6042c914ed8.tar.gz
opie-0fc9ce0c22bad09470a18eb6d084c6042c914ed8.tar.bz2
remove hardcoded icon size here as well
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--ChangeLog1
-rw-r--r--core/applets/irdaapplet/irda.cpp15
2 files changed, 9 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index f996c66..bbd22a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -30,12 +30,13 @@
30 * #1448 - Brightness Applet added (mickeyl) 30 * #1448 - Brightness Applet added (mickeyl)
31 * #1450 - ZSame didn't clear the bonus item after winning a game (zecke) 31 * #1450 - ZSame didn't clear the bonus item after winning a game (zecke)
32 * n.a. - Converted applications to not hardcode /opt/QtPalmtop but to use QPEApplication::qpeDir (zecke) 32 * n.a. - Converted applications to not hardcode /opt/QtPalmtop but to use QPEApplication::qpeDir (zecke)
33 * n.a. - Converted usage of qpeDir() not to include a '/' as first charachter of the string (zecke) 33 * n.a. - Converted usage of qpeDir() not to include a '/' as first charachter of the string (zecke)
34 * n.a. - Build system: Enable distcc and ccache when crosscompiling too, and use them everywhere we can (clem) 34 * n.a. - Build system: Enable distcc and ccache when crosscompiling too, and use them everywhere we can (clem)
35 * n.a. - Build system: Fix deps in several config.in (and fix scripts/deps.pl too) to stop breaking builds, especially with make -j highNumber (clem) 35 * n.a. - Build system: Fix deps in several config.in (and fix scripts/deps.pl too) to stop breaking builds, especially with make -j highNumber (clem)
36 * n.a. - Removed hardcoded icon size in a couple of applets (mickeyl)
36 37
37 2004-09-17Opie 1.1.6 38 2004-09-17Opie 1.1.6
38 39
39 New Features 40 New Features
40 ------------ 41 ------------
41 * Fifteen gained configurable number of items (zecke) 42 * Fifteen gained configurable number of items (zecke)
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 @@
15**********************************************************************/ 15**********************************************************************/
16 16
17#include "irda.h" 17#include "irda.h"
18 18
19/* OPIE */ 19/* OPIE */
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>
24using namespace Opie::Ui;
23 25
24/* QT */ 26/* QT */
25#include <qpainter.h> 27#include <qpainter.h>
26#include <qfile.h> 28#include <qfile.h>
27#include <qtimer.h> 29#include <qtimer.h>
28#include <qtextstream.h> 30#include <qtextstream.h>
@@ -34,25 +36,24 @@
34#include <sys/types.h> 36#include <sys/types.h>
35#include <sys/socket.h> 37#include <sys/socket.h>
36#include <sys/ioctl.h> 38#include <sys/ioctl.h>
37 39
38//=========================================================================== 40//===========================================================================
39 41
40using namespace Opie::Ui;
41IrdaApplet::IrdaApplet ( QWidget *parent, const char *name ) 42IrdaApplet::IrdaApplet ( QWidget *parent, const char *name )
42 : QWidget ( parent, name ) 43 : QWidget ( parent, 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
54 m_irda_active = false; 55 m_irda_active = false;
55 m_irda_discovery_active = false; 56 m_irda_discovery_active = false;
56 m_receive_active = false; 57 m_receive_active = false;
57 m_receive_state_changed = false; 58 m_receive_state_changed = false;
58 m_popup = 0; 59 m_popup = 0;