summaryrefslogtreecommitdiff
path: root/core/applets/logoutapplet
authormickeyl <mickeyl>2005-04-01 23:30:07 (UTC)
committer mickeyl <mickeyl>2005-04-01 23:30:07 (UTC)
commit8a1c307f9dfc26a31d42f29f29a5b1c048b99102 (patch) (side-by-side diff)
tree8e8925baf6a77e01379264afb540f33a3c07bec7 /core/applets/logoutapplet
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/applets/logoutapplet') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/logoutapplet/logout.cpp8
-rw-r--r--core/applets/logoutapplet/logout.h1
2 files changed, 5 insertions, 4 deletions
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,3 +1,6 @@
+#include "logout.h"
+
+#include <qpe/applnk.h>
#include <qpe/resource.h>
#include <qpe/qcopenvelope_qws.h>
@@ -6,9 +9,6 @@
#include <unistd.h>
-#include "logout.h"
-
-
LogoutApplet::LogoutApplet ( )
: QObject ( 0, "LogoutApplet" )
{
@@ -49,7 +49,7 @@ QIconSet LogoutApplet::icon ( ) const
QImage img = Resource::loadImage ( "logout" );
if ( !img. isNull ( ))
- pix. convertFromImage ( img. smoothScale ( 14, 14 ));
+ pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
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
@@ -21,6 +21,7 @@
#define __OPIE_LOGOUT_APPLET_H__
#include <qpe/menuappletinterface.h>
+#include <qobject.h>
class LogoutApplet : public QObject, public MenuAppletInterface
{