Diffstat (limited to 'noncore/applets/notesapplet/notes.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/notesapplet/notes.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/applets/notesapplet/notes.cpp b/noncore/applets/notesapplet/notes.cpp index 9b5e475..13f7cf3 100644 --- a/noncore/applets/notesapplet/notes.cpp +++ b/noncore/applets/notesapplet/notes.cpp | |||
@@ -37,24 +37,25 @@ | |||
37 | #include <qdir.h> | 37 | #include <qdir.h> |
38 | #include <qfile.h> | 38 | #include <qfile.h> |
39 | #include <qpoint.h> | 39 | #include <qpoint.h> |
40 | #include <qpushbutton.h> | 40 | #include <qpushbutton.h> |
41 | #include <qpainter.h> | 41 | #include <qpainter.h> |
42 | #include <qlayout.h> | 42 | #include <qlayout.h> |
43 | #include <qframe.h> | 43 | #include <qframe.h> |
44 | #include <qpixmap.h> | 44 | #include <qpixmap.h> |
45 | #include <qstring.h> | 45 | #include <qstring.h> |
46 | #include <qtimer.h> | 46 | #include <qtimer.h> |
47 | 47 | ||
48 | /* XPM */ | 48 | /* XPM */ |
49 | using namespace Opie::Ui; | ||
49 | static char * notes_xpm[] = { | 50 | static char * notes_xpm[] = { |
50 | "16 16 11 1", | 51 | "16 16 11 1", |
51 | " c None", | 52 | " c None", |
52 | ". c #000000", | 53 | ". c #000000", |
53 | "+ c #7F7F7F", | 54 | "+ c #7F7F7F", |
54 | "@ c #BFBFBF", | 55 | "@ c #BFBFBF", |
55 | "# c #BFC1FF", | 56 | "# c #BFC1FF", |
56 | "$ c #FF0000", | 57 | "$ c #FF0000", |
57 | "% c #FFFFFF", | 58 | "% c #FFFFFF", |
58 | "& c #00037F", | 59 | "& c #00037F", |
59 | "* c #0006FF", | 60 | "* c #0006FF", |
60 | "= c #0005BF", | 61 | "= c #0005BF", |
@@ -499,16 +500,15 @@ void NotesApplet::mousePressEvent( QMouseEvent *) { | |||
499 | 500 | ||
500 | vc->load(); | 501 | vc->load(); |
501 | // this->setFocus(); | 502 | // this->setFocus(); |
502 | vc->view->setFocus(); | 503 | vc->view->setFocus(); |
503 | } | 504 | } |
504 | } | 505 | } |
505 | 506 | ||
506 | void NotesApplet::paintEvent( QPaintEvent* ) { | 507 | void NotesApplet::paintEvent( QPaintEvent* ) { |
507 | QPainter p(this); | 508 | QPainter p(this); |
508 | p.drawPixmap( 0, 1, ( const char** ) notes_xpm ); | 509 | p.drawPixmap( 0, 1, ( const char** ) notes_xpm ); |
509 | } | 510 | } |
510 | 511 | ||
511 | Q_EXPORT_INTERFACE() | 512 | |
512 | { | 513 | EXPORT_OPIE_APPLET_v1( NotesApplet ) |
513 | Q_CREATE_INSTANCE( OTaskbarAppletWrapper<NotesApplet> ); | 514 | |
514 | } | ||