summaryrefslogtreecommitdiff
path: root/noncore/applets/notesapplet
Unidiff
Diffstat (limited to 'noncore/applets/notesapplet') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/notesapplet/notes.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/noncore/applets/notesapplet/notes.cpp b/noncore/applets/notesapplet/notes.cpp
index 64731e3..a4aa093 100644
--- a/noncore/applets/notesapplet/notes.cpp
+++ b/noncore/applets/notesapplet/notes.cpp
@@ -267,13 +267,13 @@ void NotesControl::populateBox() {
267 for ( int i = 0; i < noOfFiles; i++ ) { 267 for ( int i = 0; i < noOfFiles; i++ ) {
268 entryName.sprintf( "File%i", i + 1 ); 268 entryName.sprintf( "File%i", i + 1 );
269 list.append(cfg.readEntry( entryName )); 269 list.append(cfg.readEntry( entryName ));
270 } 270 }
271 list.sort(); 271 list.sort();
272 box->insertStringList(list,-1); 272 box->insertStringList(list,-1);
273 273 doPopulate=false;
274} 274}
275 275
276void NotesControl::load() { 276void NotesControl::load() {
277 277
278 Config cfg("Notes"); 278 Config cfg("Notes");
279 cfg.setGroup("Docs"); 279 cfg.setGroup("Docs");
@@ -341,21 +341,21 @@ void NotesApplet::mousePressEvent( QMouseEvent *) {
341 vc->doPopulate=false; 341 vc->doPopulate=false;
342 vc->save(); 342 vc->save();
343 vc->close(); 343 vc->close();
344 } else { 344 } else {
345// vc = new NotesControl; 345// vc = new NotesControl;
346// QPoint curPos = mapToGlobal( rect().topLeft() ); 346// QPoint curPos = mapToGlobal( rect().topLeft() );
347 vc->show(); 347 vc->show();
348 vc->move( 5, 18); 348 vc->move( 5, 18);
349 vc->doPopulate=true; 349 vc->doPopulate=true;
350 vc->populateBox(); 350 vc->populateBox();
351 vc->load(); 351 vc->doPopulate=false;
352 352
353 353 vc->load();
354 this->setFocus(); 354// this->setFocus();
355 vc->view->setFocus(); 355 vc->view->setFocus();
356 } 356 }
357} 357}
358 358
359void NotesApplet::paintEvent( QPaintEvent* ) { 359void NotesApplet::paintEvent( QPaintEvent* ) {
360 QPainter p(this); 360 QPainter p(this);
361 p.drawPixmap( 0, 1, ( const char** ) notes_xpm ); 361 p.drawPixmap( 0, 1, ( const char** ) notes_xpm );