author | llornkcor <llornkcor> | 2002-09-27 18:09:40 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-09-27 18:09:40 (UTC) |
commit | 4c1c6d7e8f8b9c207e88767808631b1780d099bf (patch) (unidiff) | |
tree | b7616c5293ad422294ea106dc058bf91bfc36ea8 | |
parent | 44c98b497ff1cb8cddba10b56435f136a583cce2 (diff) | |
download | opie-4c1c6d7e8f8b9c207e88767808631b1780d099bf.zip opie-4c1c6d7e8f8b9c207e88767808631b1780d099bf.tar.gz opie-4c1c6d7e8f8b9c207e88767808631b1780d099bf.tar.bz2 |
remove old function
-rw-r--r-- | noncore/applets/notesapplet/notes.cpp | 4 | ||||
-rw-r--r-- | noncore/applets/notesapplet/notes.h | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/noncore/applets/notesapplet/notes.cpp b/noncore/applets/notesapplet/notes.cpp index 2d38e97..76cb6c1 100644 --- a/noncore/applets/notesapplet/notes.cpp +++ b/noncore/applets/notesapplet/notes.cpp | |||
@@ -403,17 +403,17 @@ void NotesControl::slotViewEdited() { | |||
403 | // // Copy text from the clipboard (paste) | 403 | // // Copy text from the clipboard (paste) |
404 | // text = cb->text(); | 404 | // text = cb->text(); |
405 | // } | 405 | // } |
406 | // if(e->key() == Key_X) { //cut | 406 | // if(e->key() == Key_X) { //cut |
407 | // } | 407 | // } |
408 | // if(e->key() == Key_V) { //paste | 408 | // if(e->key() == Key_V) { //paste |
409 | // QClipboard *cb = QApplication::clipboard(); | 409 | // QClipboard *cb = QApplication::clipboard(); |
410 | // QString text; | 410 | // QString text; |
411 | // view | 411 | // //view |
412 | // cb->setText(); | 412 | // cb->setText(); |
413 | // } | 413 | // } |
414 | // break; | 414 | // break; |
415 | // }; | 415 | // }; |
416 | // QWidget::keyReleaseEvent(e); | 416 | // QWidget::keyReleaseEvent(e); |
417 | // } | 417 | // } |
418 | 418 | ||
419 | //=========================================================================== | 419 | //=========================================================================== |
@@ -432,17 +432,17 @@ void NotesApplet::mousePressEvent( QMouseEvent *) { | |||
432 | if( !vc->isHidden()) { | 432 | if( !vc->isHidden()) { |
433 | vc->doPopulate=false; | 433 | vc->doPopulate=false; |
434 | vc->save(); | 434 | vc->save(); |
435 | vc->close(); | 435 | vc->close(); |
436 | } else { | 436 | } else { |
437 | // vc = new NotesControl; | 437 | // vc = new NotesControl; |
438 | // QPoint curPos = mapToGlobal( rect().topLeft() ); | 438 | // QPoint curPos = mapToGlobal( rect().topLeft() ); |
439 | vc->show(); | 439 | vc->show(); |
440 | vc->move( 5, 18); | 440 | vc->move( 2, 28); |
441 | vc->doPopulate=true; | 441 | vc->doPopulate=true; |
442 | vc->populateBox(); | 442 | vc->populateBox(); |
443 | vc->doPopulate=false; | 443 | vc->doPopulate=false; |
444 | vc->loaded=false; | 444 | vc->loaded=false; |
445 | 445 | ||
446 | vc->load(); | 446 | vc->load(); |
447 | // this->setFocus(); | 447 | // this->setFocus(); |
448 | vc->view->setFocus(); | 448 | vc->view->setFocus(); |
diff --git a/noncore/applets/notesapplet/notes.h b/noncore/applets/notesapplet/notes.h index a593881..28877ce 100644 --- a/noncore/applets/notesapplet/notes.h +++ b/noncore/applets/notesapplet/notes.h | |||
@@ -30,17 +30,16 @@ class QSpinBox; | |||
30 | class QPushButton; | 30 | class QPushButton; |
31 | class QMultiLineEdit; | 31 | class QMultiLineEdit; |
32 | class QListBox; | 32 | class QListBox; |
33 | class QListBoxItem; | 33 | class QListBoxItem; |
34 | class NotesControl : public QFrame { | 34 | class NotesControl : public QFrame { |
35 | Q_OBJECT | 35 | Q_OBJECT |
36 | public: | 36 | public: |
37 | NotesControl( QWidget *parent=0, const char *name=0 ); | 37 | NotesControl( QWidget *parent=0, const char *name=0 ); |
38 | void performGrab(); | ||
39 | 38 | ||
40 | QPixmap notes; | 39 | QPixmap notes; |
41 | QMultiLineEdit *view; | 40 | QMultiLineEdit *view; |
42 | QListBox *box; | 41 | QListBox *box; |
43 | QPushButton *saveButton, *deleteButton, *newButton; | 42 | QPushButton *saveButton, *deleteButton, *newButton; |
44 | QString FileNamePath; | 43 | QString FileNamePath; |
45 | bool loaded, edited, doPopulate; | 44 | bool loaded, edited, doPopulate; |
46 | void save(); | 45 | void save(); |