summaryrefslogtreecommitdiff
path: root/core/applets/homeapplet/home.cpp
Unidiff
Diffstat (limited to 'core/applets/homeapplet/home.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/homeapplet/home.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/applets/homeapplet/home.cpp b/core/applets/homeapplet/home.cpp
index f94bc14..017de27 100644
--- a/core/applets/homeapplet/home.cpp
+++ b/core/applets/homeapplet/home.cpp
@@ -1,9 +1,10 @@
1#include <qpe/resource.h> 1#include <qpe/resource.h>
2#include <qpe/qcopenvelope_qws.h> 2#include <qpe/qcopenvelope_qws.h>
3 3
4#include <qapplication.h>
4#include <qiconset.h> 5#include <qiconset.h>
5#include <qpopupmenu.h> 6#include <qpopupmenu.h>
6 7
7#include "home.h" 8#include "home.h"
8 9
9 10
@@ -28,12 +29,22 @@ QString HomeApplet::name ( ) const
28 29
29QString HomeApplet::text ( ) const 30QString HomeApplet::text ( ) const
30{ 31{
31 return tr( "Desktop" ); 32 return tr( "Desktop" );
32} 33}
33 34
35QString HomeApplet::tr( const char* s ) const
36{
37 return qApp->translate( "HomeApplet", s, 0 );
38}
39
40QString HomeApplet::tr( const char* s, const char* p ) const
41{
42 return qApp->translate( "HomeApplet", s, p );
43}
44
34QIconSet HomeApplet::icon ( ) const 45QIconSet HomeApplet::icon ( ) const
35{ 46{
36 QPixmap pix; 47 QPixmap pix;
37 QImage img = Resource::loadImage ( "home" ); 48 QImage img = Resource::loadImage ( "home" );
38 49
39 if ( !img. isNull ( )) 50 if ( !img. isNull ( ))