-rw-r--r-- | core/applets/vtapplet/vt.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/core/applets/vtapplet/vt.cpp b/core/applets/vtapplet/vt.cpp index ae89635..0d4e657 100644 --- a/core/applets/vtapplet/vt.cpp +++ b/core/applets/vtapplet/vt.cpp | |||
@@ -12,14 +12,16 @@ | |||
12 | **********************************************************************/ | 12 | **********************************************************************/ |
13 | 13 | ||
14 | #include "vt.h" | 14 | #include "vt.h" |
15 | 15 | ||
16 | /* OPIE */ | 16 | /* OPIE */ |
17 | #include <opie2/odebug.h> | 17 | #include <opie2/odebug.h> |
18 | #include <opie2/oresource.h> | ||
19 | |||
18 | #include <qpe/applnk.h> | 20 | #include <qpe/applnk.h> |
19 | #include <qpe/resource.h> | 21 | |
20 | using namespace Opie::Core; | 22 | using namespace Opie::Core; |
21 | 23 | ||
22 | /* QT */ | 24 | /* QT */ |
23 | #include <qpopupmenu.h> | 25 | #include <qpopupmenu.h> |
24 | 26 | ||
25 | /* STD */ | 27 | /* STD */ |
@@ -65,17 +67,13 @@ QString VTApplet::tr( const char* s, const char* p ) const | |||
65 | return qApp->translate( "VTApplet", s, p ); | 67 | return qApp->translate( "VTApplet", s, p ); |
66 | } | 68 | } |
67 | */ | 69 | */ |
68 | 70 | ||
69 | QIconSet VTApplet::icon ( ) const | 71 | QIconSet VTApplet::icon ( ) const |
70 | { | 72 | { |
71 | QPixmap pix; | 73 | QPixmap pix = Opie::Core::OResource::loadPixmap( "terminal", Opie::Core::OResource::SmallIcon ); |
72 | QImage img = Resource::loadImage ( "terminal" ); | ||
73 | |||
74 | if ( !img. isNull ( )) | ||
75 | pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) ); | ||
76 | return pix; | 74 | return pix; |
77 | } | 75 | } |
78 | 76 | ||
79 | QPopupMenu *VTApplet::popup ( QWidget* parent ) const | 77 | QPopupMenu *VTApplet::popup ( QWidget* parent ) const |
80 | { | 78 | { |
81 | odebug << "VTApplet::popup" << oendl; | 79 | odebug << "VTApplet::popup" << oendl; |