-rw-r--r-- | noncore/applets/notesapplet/notes.cpp | 40 |
1 files changed, 5 insertions, 35 deletions
diff --git a/noncore/applets/notesapplet/notes.cpp b/noncore/applets/notesapplet/notes.cpp index b3e72a7..d06672a 100644 --- a/noncore/applets/notesapplet/notes.cpp +++ b/noncore/applets/notesapplet/notes.cpp @@ -25,4 +25,5 @@ #include <qpe/ir.h> #include <qpe/config.h> +#include <qpe/resource.h> using namespace Opie::Core; using namespace Opie::Ui; @@ -49,36 +50,4 @@ using namespace Opie::Ui; #include <stdlib.h> -/* XPM */ -static char * notes_xpm[] = { -"16 16 11 1", -" c None", -". c #000000", -"+ c #7F7F7F", -"@ c #BFBFBF", -"# c #BFC1FF", -"$ c #FF0000", -"% c #FFFFFF", -"& c #00037F", -"* c #0006FF", -"= c #0005BF", -"- c #7F0000", -" .. ", -" .. ", -" ... ", -" .+ ", -" .@. ", -" . .+ ", -" ..#.@. ", -" ..###.+.. ", -" ..###$...##.. ", -"..###$$$%+$$##&.", -".*=####$-###&=&.", -".=**=###==&=&=..", -" ..=**=#&=&=.. ", -" ..=*=&=.. ", -" ..=.. ", -" . "}; - - NotesControl::NotesControl( QWidget *, const char * ) : QVBox( 0, "NotesControl",/* WDestructiveClose | */WStyle_StaysOnTop ) @@ -462,6 +431,7 @@ void NotesControl::slotSearch() { NotesApplet::NotesApplet( QWidget *parent, const char *name ) : QWidget( parent, name ) { - setFixedHeight( 18 ); - setFixedWidth( 14 ); + setFixedHeight( AppLnk::smallIconSize() ); + setFixedWidth( AppLnk::smallIconSize() ); + notesPixmap.convertFromImage( Resource::loadImage( "edit" ).smoothScale( height(), width() ) ); vc = new NotesControl; } @@ -509,5 +479,5 @@ void NotesApplet::mousePressEvent( QMouseEvent *) { void NotesApplet::paintEvent( QPaintEvent* ) { QPainter p(this); - p.drawPixmap( 0, 1, ( const char** ) notes_xpm ); + p.drawPixmap( 0, 2, notesPixmap ); } |