author | llornkcor <llornkcor> | 2005-02-06 04:03:25 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2005-02-06 04:03:25 (UTC) |
commit | e23dd592fc71aa22c449363231eac2f8ebd2a45b (patch) (unidiff) | |
tree | 6944284c2632754357578581b564413f0fa09109 | |
parent | b09f9ce74d40f47bc336b4647c6c091a4f3bd5b6 (diff) | |
download | opie-e23dd592fc71aa22c449363231eac2f8ebd2a45b.zip opie-e23dd592fc71aa22c449363231eac2f8ebd2a45b.tar.gz opie-e23dd592fc71aa22c449363231eac2f8ebd2a45b.tar.bz2 |
fix #1499 - rename working
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 38 | ||||
-rw-r--r-- | noncore/apps/advancedfm/advancedfmMenu.cpp | 3 |
2 files changed, 5 insertions, 36 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 8cc5d7b..56e3282 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -356,9 +356,10 @@ void AdvancedFm::keyPressEvent( QKeyEvent *e) { | |||
356 | 356 | ||
357 | void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { | 357 | void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { |
358 | // if( CurrentView()->hasFocus() ) | 358 | // if( CurrentView()->hasFocus() ) |
359 | // e->ignore(); | 359 | // e->ignore(); |
360 | if( currentPathCombo->lineEdit()->hasFocus()) { | 360 | |
361 | if( currentPathCombo->lineEdit()->hasFocus()) { | ||
361 | // qDebug("shout!"); | 362 | // qDebug("shout!"); |
362 | } | 363 | } |
363 | 364 | ||
364 | else if( e->key() == Key_Left ) | 365 | else if( e->key() == Key_Left ) |
@@ -368,44 +369,11 @@ void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { | |||
368 | else if( e->key() == Key_Tab) | 369 | else if( e->key() == Key_Tab) |
369 | setOtherTabCurrent(); | 370 | setOtherTabCurrent(); |
370 | else if( e->key() == Key_Delete ) | 371 | else if( e->key() == Key_Delete ) |
371 | del(); | 372 | del(); |
372 | else if( e->key() == Key_A) | ||
373 | copyAs(); | ||
374 | else if( e->key() == Key_C) | ||
375 | copy(); | ||
376 | else if( e->key() == Key_E) | ||
377 | runThis(); | ||
378 | else if( e->key() == Key_G) | ||
379 | currentPathCombo->lineEdit()->setFocus(); | ||
380 | else if( e->key() == Key_H ) | ||
381 | showHidden(); | ||
382 | else if( e->key() == Key_I) | ||
383 | fileStatus(); | ||
384 | else if( e->key() == Key_M) | ||
385 | move(); | ||
386 | else if( e->key() == Key_N ) | ||
387 | mkDir(); | ||
388 | else if( e->key() == Key_P) | ||
389 | filePerms(); | ||
390 | else if( e->key() == Key_R ) | ||
391 | rn(); | ||
392 | else if( e->key() == Key_U ) | ||
393 | upDir(); | ||
394 | else if( e->key() == Key_1) | ||
395 | switchToLocalTab(); | ||
396 | else if( e->key() == Key_2) | ||
397 | switchToRemoteTab(); | ||
398 | else if( e->key() == Key_3) | ||
399 | CFButtonPushed(); | ||
400 | else if( e->key() == Key_4) | ||
401 | SDButtonPushed(); | ||
402 | else if( e->key() == Key_5 ) | ||
403 | homeButtonPushed(); | ||
404 | else if( e->key() == Key_6 ) | ||
405 | docButtonPushed(); | ||
406 | else | 373 | else |
407 | e->accept(); | 374 | e->accept(); |
375 | |||
408 | } | 376 | } |
409 | 377 | ||
410 | 378 | ||
411 | void AdvancedFm::parsetab(const QString &fileName) { | 379 | void AdvancedFm::parsetab(const QString &fileName) { |
diff --git a/noncore/apps/advancedfm/advancedfmMenu.cpp b/noncore/apps/advancedfm/advancedfmMenu.cpp index 6abdc85..80324eb 100644 --- a/noncore/apps/advancedfm/advancedfmMenu.cpp +++ b/noncore/apps/advancedfm/advancedfmMenu.cpp | |||
@@ -864,9 +864,10 @@ void AdvancedFm::okRename() { | |||
864 | oldName = ""; | 864 | oldName = ""; |
865 | QListViewItem *item = view->currentItem(); | 865 | QListViewItem *item = view->currentItem(); |
866 | view->takeItem( item ); | 866 | view->takeItem( item ); |
867 | delete item; | 867 | delete item; |
868 | rePopulate(); | 868 | populateView(); |
869 | |||
869 | } | 870 | } |
870 | 871 | ||
871 | void AdvancedFm::openSearch() { | 872 | void AdvancedFm::openSearch() { |
872 | QMessageBox::message(tr("Note"),tr("Not Yet Implemented")); | 873 | QMessageBox::message(tr("Note"),tr("Not Yet Implemented")); |