summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2003-05-26 05:10:34 (UTC)
committer llornkcor <llornkcor>2003-05-26 05:10:34 (UTC)
commit71b76a1c9144b1d844774e1b8175e16f5c0a64dc (patch) (unidiff)
tree2b39a37c673ad609bc58df3ea0ab9f2e782b0a25
parent410f657febc2951dbe7d10b30294a4529bd6ac0e (diff)
downloadopie-71b76a1c9144b1d844774e1b8175e16f5c0a64dc.zip
opie-71b76a1c9144b1d844774e1b8175e16f5c0a64dc.tar.gz
opie-71b76a1c9144b1d844774e1b8175e16f5c0a64dc.tar.bz2
remove extra includes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/restartapplet/restart.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/applets/restartapplet/restart.cpp b/core/applets/restartapplet/restart.cpp
index 9ecba04..226c2a8 100644
--- a/core/applets/restartapplet/restart.cpp
+++ b/core/applets/restartapplet/restart.cpp
@@ -1,77 +1,72 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2002 L.J. Potter ljp@llornkcor.com 2** Copyright (C) 2002 L.J. Potter ljp@llornkcor.com
3** All rights reserved. 3** All rights reserved.
4** 4**
5** This file may be distributed and/or modified under the terms of the 5** This file may be distributed and/or modified under the terms of the
6** GNU General Public License version 2 as published by the Free Software 6** GNU General Public License version 2 as published by the Free Software
7** Foundation and appearing in the file LICENSE.GPL included in the 7** Foundation and appearing in the file LICENSE.GPL included in the
8** packaging of this file. 8** packaging of this file.
9** 9**
10** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 10** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
11** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 11** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
12** 12**
13**********************************************************************/ 13**********************************************************************/
14 14
15#include "restart.h" 15#include "restart.h"
16 16
17#include <qpe/resource.h>
18#include <qpe/qpeapplication.h>
19 17
20#include <qpe/qcopenvelope_qws.h> 18#include <qpe/qcopenvelope_qws.h>
21#include <qpe/resource.h>
22#include <qpainter.h> 19#include <qpainter.h>
23#include <qpixmap.h>
24#include <qdatastream.h>
25 20
26 21
27/* XPM */ 22/* XPM */
28static char *restart_xpm[] = { 23static char *restart_xpm[] = {
29"16 16 11 1", 24"16 16 11 1",
30" c None", 25" c None",
31". c #000000", 26". c #000000",
32"+ c #DCDCDC", 27"+ c #DCDCDC",
33"@ c #A0A0A0", 28"@ c #A0A0A0",
34"# c #C3C3C3", 29"# c #C3C3C3",
35"$ c #808080", 30"$ c #808080",
36"% c #FFA858", 31"% c #FFA858",
37"& c #FFDCA8", 32"& c #FFDCA8",
38"* c #FFFFC0", 33"* c #FFFFC0",
39"= c #FFFFFF", 34"= c #FFFFFF",
40"- c #585858", 35"- c #585858",
41" .. ", 36" .. ",
42" .. .++. .. ", 37" .. .++. .. ",
43" .+@.@##@.@+. ", 38" .+@.@##@.@+. ",
44" .@+$@%%@$+@. ", 39" .@+$@%%@$+@. ",
45" .$%%&%&%$. ", 40" .$%%&%&%$. ",
46" ..+@%&$$%&@+.. ", 41" ..+@%&$$%&@+.. ",
47".+#@%&%@@&*%@#+.", 42".+#@%&%@@&*%@#+.",
48".$@+$&*&&=*$+@$.", 43".$@+$&*&&=*$+@$.",
49" .--+$&*=&$+--. ", 44" .--+$&*=&$+--. ",
50" .$#++$$++#$. ", 45" .$#++$$++#$. ",
51" .@=$-$++$-$=@. ", 46" .@=$-$++$-$=@. ",
52" .+@-..@@..-@+. ", 47" .+@-..@@..-@+. ",
53" ... .+=. ... ", 48" ... .+=. ... ",
54" .-$. ", 49" .-$. ",
55" .. ", 50" .. ",
56" "}; 51" "};
57RestartApplet::RestartApplet( QWidget *parent, const char *name ) 52RestartApplet::RestartApplet( QWidget *parent, const char *name )
58 : QWidget( parent, name ) { 53 : QWidget( parent, name ) {
59 setFixedHeight( 18 ); 54 setFixedHeight( 18 );
60 setFixedWidth( 16 ); 55 setFixedWidth( 16 );
61 qDebug("new restartapplet"); 56 qDebug("new restartapplet");
62 show(); 57 show();
63} 58}
64 59
65RestartApplet::~RestartApplet() { 60RestartApplet::~RestartApplet() {
66} 61}
67 62
68void RestartApplet::mousePressEvent( QMouseEvent *) { 63void RestartApplet::mousePressEvent( QMouseEvent *) {
69 QCopEnvelope e("QPE/System", "restart()"); 64 QCopEnvelope e("QPE/System", "restart()");
70} 65}
71 66
72void RestartApplet::paintEvent( QPaintEvent* ) { 67void RestartApplet::paintEvent( QPaintEvent* ) {
73 QPainter p(this); 68 QPainter p(this);
74 qDebug("paint RESTART pixmap"); 69 qDebug("paint RESTART pixmap");
75 p.drawPixmap( 0, 1, ( const char** ) restart_xpm ); 70 p.drawPixmap( 0, 1, ( const char** ) restart_xpm );
76} 71}
77 72