summaryrefslogtreecommitdiff
path: root/core/applets/restartapplet2
Unidiff
Diffstat (limited to 'core/applets/restartapplet2') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/restartapplet2/opie-restartapplet2.control2
-rw-r--r--core/applets/restartapplet2/restart.cpp42
-rw-r--r--core/applets/restartapplet2/restartapplet.pro2
3 files changed, 6 insertions, 40 deletions
diff --git a/core/applets/restartapplet2/opie-restartapplet2.control b/core/applets/restartapplet2/opie-restartapplet2.control
index cec3b19..9cc8dac 100644
--- a/core/applets/restartapplet2/opie-restartapplet2.control
+++ b/core/applets/restartapplet2/opie-restartapplet2.control
@@ -4,7 +4,7 @@ Priority: optional
4Section: opie/applets 4Section: opie/applets
5Maintainer: L.J. Potter <lpotter@trolltech.com> 5Maintainer: L.J. Potter <lpotter@trolltech.com>
6Architecture: arm 6Architecture: arm
7Depends: task-opie-minimal 7Depends: task-opie-minimal, libopiecore2
8Description: Restart Applet 8Description: Restart Applet
9 A simple opie menu applet to restart the Opie environment 9 A simple opie menu applet to restart the Opie environment
10Version: $QPE_VERSION$EXTRAVERSION 10Version: $QPE_VERSION$EXTRAVERSION
diff --git a/core/applets/restartapplet2/restart.cpp b/core/applets/restartapplet2/restart.cpp
index eda0005..42d814a 100644
--- a/core/applets/restartapplet2/restart.cpp
+++ b/core/applets/restartapplet2/restart.cpp
@@ -2,42 +2,12 @@
2 2
3#include "restart.h" 3#include "restart.h"
4 4
5#include <opie2/oresource.h>
6
5#include <qpe/applnk.h> 7#include <qpe/applnk.h>
6#include <qpe/qpeapplication.h> 8#include <qpe/qpeapplication.h>
7#include <qpe/resource.h>
8#include <qpe/qcopenvelope_qws.h> 9#include <qpe/qcopenvelope_qws.h>
9 10
10/* XPM */
11static char *restart_xpm[] = {
12"16 16 11 1",
13" c None",
14". c #000000",
15"+ c #DCDCDC",
16"@ c #A0A0A0",
17"# c #C3C3C3",
18"$ c #808080",
19"% c #FFA858",
20"& c #FFDCA8",
21"* c #FFFFC0",
22"= c #FFFFFF",
23"- c #585858",
24" .. ",
25" .. .++. .. ",
26" .+@.@##@.@+. ",
27" .@+$@%%@$+@. ",
28" .$%%&%&%$. ",
29" ..+@%&$$%&@+.. ",
30".+#@%&%@@&*%@#+.",
31".$@+$&*&&=*$+@$.",
32" .--+$&*=&$+--. ",
33" .$#++$$++#$. ",
34" .@=$-$++$-$=@. ",
35" .+@-..@@..-@+. ",
36" ... .+=. ... ",
37" .-$. ",
38" .. ",
39" "};
40
41RestartApplet::RestartApplet ( ) 11RestartApplet::RestartApplet ( )
42 : QObject ( 0, "RestartApplet" ) 12 : QObject ( 0, "RestartApplet" )
43{ 13{
@@ -64,12 +34,8 @@ QString RestartApplet::text ( ) const
64 34
65QIconSet RestartApplet::icon ( ) const 35QIconSet RestartApplet::icon ( ) const
66{ 36{
67 QPixmap pix; 37 QPixmap pix = Opie::Core::OResource::loadPixmap( "exec", Opie::Core::OResource::SmallIcon );
68 QImage img = ( const char** ) restart_xpm ;//Resource::loadImage ( "Run" ); 38 return pix;
69
70 if ( !img. isNull ( ))
71 pix.convertFromImage( img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() ) );
72 return pix;
73} 39}
74 40
75QPopupMenu *RestartApplet::popup ( QWidget * ) const 41QPopupMenu *RestartApplet::popup ( QWidget * ) const
diff --git a/core/applets/restartapplet2/restartapplet.pro b/core/applets/restartapplet2/restartapplet.pro
index 60d34f2..d3c408d 100644
--- a/core/applets/restartapplet2/restartapplet.pro
+++ b/core/applets/restartapplet2/restartapplet.pro
@@ -6,7 +6,7 @@ TARGET = restartapplet2
6DESTDIR = $(OPIEDIR)/plugins/applets 6DESTDIR = $(OPIEDIR)/plugins/applets
7INCLUDEPATH += $(OPIEDIR)/include 7INCLUDEPATH += $(OPIEDIR)/include
8DEPENDPATH += $(OPIEDIR)/include 8DEPENDPATH += $(OPIEDIR)/include
9LIBS += -lqpe 9LIBS += -lqpe -lopiecore2
10VERSION = 1.0.0 10VERSION = 1.0.0
11MOC_DIR=opieobj 11MOC_DIR=opieobj
12OBJECTS_DIR=opieobj 12OBJECTS_DIR=opieobj