summaryrefslogtreecommitdiff
path: root/core
authormickeyl <mickeyl>2005-04-01 23:30:07 (UTC)
committer mickeyl <mickeyl>2005-04-01 23:30:07 (UTC)
commit8a1c307f9dfc26a31d42f29f29a5b1c048b99102 (patch) (unidiff)
tree8e8925baf6a77e01379264afb540f33a3c07bec7 /core
parent88cc0cc17864de6e36bdeedaae6df0a5cc738c5a (diff)
downloadopie-8a1c307f9dfc26a31d42f29f29a5b1c048b99102.zip
opie-8a1c307f9dfc26a31d42f29f29a5b1c048b99102.tar.gz
opie-8a1c307f9dfc26a31d42f29f29a5b1c048b99102.tar.bz2
scale O-Menu-Applet pixmaps according to AppLnk::smallIconSize
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/aboutapplet/about.cpp7
-rw-r--r--core/applets/homeapplet/home.cpp8
-rw-r--r--core/applets/homeapplet/home.h1
-rw-r--r--core/applets/logoutapplet/logout.cpp8
-rw-r--r--core/applets/logoutapplet/logout.h1
-rw-r--r--core/applets/restartapplet2/restart.cpp11
-rw-r--r--core/applets/rotateapplet/rotate.cpp6
-rw-r--r--core/applets/suspendapplet/suspend.cpp8
-rw-r--r--core/applets/suspendapplet/suspend.h1
-rw-r--r--core/applets/vtapplet/vt.cpp3
10 files changed, 28 insertions, 26 deletions
diff --git a/core/applets/aboutapplet/about.cpp b/core/applets/aboutapplet/about.cpp
index 1dbd4c4..ec214f3 100644
--- a/core/applets/aboutapplet/about.cpp
+++ b/core/applets/aboutapplet/about.cpp
@@ -3,2 +3,3 @@
3 3
4#include <qpe/applnk.h>
4#include <qpe/qpeapplication.h> 5#include <qpe/qpeapplication.h>
@@ -43,3 +44,3 @@ QString AboutApplet::tr( const char* s, const char* p ) const
43 44
44QIconSet AboutApplet::icon ( ) const 45QIconSet AboutApplet::icon() const
45{ 46{
@@ -48,4 +49,4 @@ QIconSet AboutApplet::icon ( ) const
48 49
49 if ( !img. isNull ( ) ) 50 if ( !img.isNull() )
50 pix. convertFromImage ( img. smoothScale ( 14, 14 ) ); 51 pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
51 return pix; 52 return pix;
diff --git a/core/applets/homeapplet/home.cpp b/core/applets/homeapplet/home.cpp
index 8a930be..02d1265 100644
--- a/core/applets/homeapplet/home.cpp
+++ b/core/applets/homeapplet/home.cpp
@@ -1 +1,4 @@
1#include "home.h"
2
3#include <qpe/applnk.h>
1#include <qpe/resource.h> 4#include <qpe/resource.h>
@@ -5,5 +8,2 @@
5 8
6#include "home.h"
7
8
9HomeApplet::HomeApplet ( ) 9HomeApplet::HomeApplet ( )
@@ -48,3 +48,3 @@ QIconSet HomeApplet::icon ( ) const
48 if ( !img. isNull ( )) 48 if ( !img. isNull ( ))
49 pix. convertFromImage ( img. smoothScale ( 14, 14 )); 49 pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
50 return pix; 50 return pix;
diff --git a/core/applets/homeapplet/home.h b/core/applets/homeapplet/home.h
index 22ecd47..7f1f006 100644
--- a/core/applets/homeapplet/home.h
+++ b/core/applets/homeapplet/home.h
@@ -23,2 +23,3 @@
23#include <qpe/menuappletinterface.h> 23#include <qpe/menuappletinterface.h>
24#include <qobject.h>
24 25
diff --git a/core/applets/logoutapplet/logout.cpp b/core/applets/logoutapplet/logout.cpp
index 0ac0067..0f36f16 100644
--- a/core/applets/logoutapplet/logout.cpp
+++ b/core/applets/logoutapplet/logout.cpp
@@ -1 +1,4 @@
1#include "logout.h"
2
3#include <qpe/applnk.h>
1#include <qpe/resource.h> 4#include <qpe/resource.h>
@@ -8,5 +11,2 @@
8 11
9#include "logout.h"
10
11
12LogoutApplet::LogoutApplet ( ) 12LogoutApplet::LogoutApplet ( )
@@ -51,3 +51,3 @@ QIconSet LogoutApplet::icon ( ) const
51 if ( !img. isNull ( )) 51 if ( !img. isNull ( ))
52 pix. convertFromImage ( img. smoothScale ( 14, 14 )); 52 pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
53 return pix; 53 return pix;
diff --git a/core/applets/logoutapplet/logout.h b/core/applets/logoutapplet/logout.h
index a991f65..3c17278 100644
--- a/core/applets/logoutapplet/logout.h
+++ b/core/applets/logoutapplet/logout.h
@@ -23,2 +23,3 @@
23#include <qpe/menuappletinterface.h> 23#include <qpe/menuappletinterface.h>
24#include <qobject.h>
24 25
diff --git a/core/applets/restartapplet2/restart.cpp b/core/applets/restartapplet2/restart.cpp
index a169505..eda0005 100644
--- a/core/applets/restartapplet2/restart.cpp
+++ b/core/applets/restartapplet2/restart.cpp
@@ -2,2 +2,5 @@
2 2
3#include "restart.h"
4
5#include <qpe/applnk.h>
3#include <qpe/qpeapplication.h> 6#include <qpe/qpeapplication.h>
@@ -6,8 +9,2 @@
6 9
7#include "restart.h"
8
9// #include <stdlib.h>
10// #include <unistd.h>
11// #include <sys/stat.h>
12//#include <dirent.h>
13/* XPM */ 10/* XPM */
@@ -73,3 +70,3 @@ QIconSet RestartApplet::icon ( ) const
73 if ( !img. isNull ( )) 70 if ( !img. isNull ( ))
74 pix. convertFromImage ( img. smoothScale ( 14, 14 )); 71 pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
75 return pix; 72 return pix;
diff --git a/core/applets/rotateapplet/rotate.cpp b/core/applets/rotateapplet/rotate.cpp
index f23423d..d13c2c0 100644
--- a/core/applets/rotateapplet/rotate.cpp
+++ b/core/applets/rotateapplet/rotate.cpp
@@ -35,2 +35,3 @@
35#include <opie2/odevice.h> 35#include <opie2/odevice.h>
36#include <qpe/applnk.h>
36#include <qpe/config.h> 37#include <qpe/config.h>
@@ -41,4 +42,3 @@ using namespace Opie::Core;
41 42
42/* QT */ 43/* STD */
43
44#include <time.h> 44#include <time.h>
@@ -144,3 +144,3 @@ QIconSet RotateApplet::icon() const
144 if ( !img.isNull() ) 144 if ( !img.isNull() )
145 pix.convertFromImage( img.smoothScale( 14, 14 ) ); 145 pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
146 return pix; 146 return pix;
diff --git a/core/applets/suspendapplet/suspend.cpp b/core/applets/suspendapplet/suspend.cpp
index 0eb94cb..4fbd704 100644
--- a/core/applets/suspendapplet/suspend.cpp
+++ b/core/applets/suspendapplet/suspend.cpp
@@ -1 +1,4 @@
1#include "suspend.h"
2
3#include <qpe/applnk.h>
1#include <qpe/resource.h> 4#include <qpe/resource.h>
@@ -5,5 +8,2 @@
5 8
6#include "suspend.h"
7
8
9SuspendApplet::SuspendApplet ( ) 9SuspendApplet::SuspendApplet ( )
@@ -48,3 +48,3 @@ QIconSet SuspendApplet::icon ( ) const
48 if ( !img. isNull ( )) 48 if ( !img. isNull ( ))
49 pix. convertFromImage ( img. smoothScale ( 14, 14 )); 49 pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
50 return pix; 50 return pix;
diff --git a/core/applets/suspendapplet/suspend.h b/core/applets/suspendapplet/suspend.h
index 8c54cde..c037adc 100644
--- a/core/applets/suspendapplet/suspend.h
+++ b/core/applets/suspendapplet/suspend.h
@@ -23,2 +23,3 @@
23#include <qpe/menuappletinterface.h> 23#include <qpe/menuappletinterface.h>
24#include <qobject.h>
24 25
diff --git a/core/applets/vtapplet/vt.cpp b/core/applets/vtapplet/vt.cpp
index 7832ee0..ae89635 100644
--- a/core/applets/vtapplet/vt.cpp
+++ b/core/applets/vtapplet/vt.cpp
@@ -17,2 +17,3 @@
17#include <opie2/odebug.h> 17#include <opie2/odebug.h>
18#include <qpe/applnk.h>
18#include <qpe/resource.h> 19#include <qpe/resource.h>
@@ -73,3 +74,3 @@ QIconSet VTApplet::icon ( ) const
73 if ( !img. isNull ( )) 74 if ( !img. isNull ( ))
74 pix. convertFromImage ( img. smoothScale ( 14, 14 )); 75 pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
75 return pix; 76 return pix;