author | llornkcor <llornkcor> | 2004-09-25 04:54:06 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2004-09-25 04:54:06 (UTC) |
commit | e474ac3ccfb7668eca0de69d42d7d8505f8ae5d8 (patch) (unidiff) | |
tree | e6244b2241099077cd289bd1a0460a58b8515f37 | |
parent | 2b31930ef559a2893f47aa866a706ea13d99a6f5 (diff) | |
download | opie-e474ac3ccfb7668eca0de69d42d7d8505f8ae5d8.zip opie-e474ac3ccfb7668eca0de69d42d7d8505f8ae5d8.tar.gz opie-e474ac3ccfb7668eca0de69d42d7d8505f8ae5d8.tar.bz2 |
unused
-rw-r--r-- | noncore/apps/advancedfm/advancedfm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/advancedfm/advancedfm.cpp b/noncore/apps/advancedfm/advancedfm.cpp index 9cb9aba..3bfec7d 100644 --- a/noncore/apps/advancedfm/advancedfm.cpp +++ b/noncore/apps/advancedfm/advancedfm.cpp | |||
@@ -368,29 +368,28 @@ void AdvancedFm::CFButtonPushed() { | |||
368 | changeTo("/mnt/hda"); //ipaq | 368 | changeTo("/mnt/hda"); //ipaq |
369 | } | 369 | } |
370 | 370 | ||
371 | void AdvancedFm::QPEButtonPushed() { | 371 | void AdvancedFm::QPEButtonPushed() { |
372 | changeTo(QPEApplication::qpeDir()); | 372 | changeTo(QPEApplication::qpeDir()); |
373 | } | 373 | } |
374 | 374 | ||
375 | void AdvancedFm::doAbout() { | 375 | void AdvancedFm::doAbout() { |
376 | QMessageBox::message("AdvancedFm",tr("<P>Advanced FileManager is copyright 2002-2003 by L.J.Potter<llornkcor@handhelds.org> and is licensed by the GPL</P>")); | 376 | QMessageBox::message("AdvancedFm",tr("<P>Advanced FileManager is copyright 2002-2003 by L.J.Potter<llornkcor@handhelds.org> and is licensed by the GPL</P>")); |
377 | } | 377 | } |
378 | 378 | ||
379 | void AdvancedFm::keyPressEvent( QKeyEvent *e) { | 379 | void AdvancedFm::keyPressEvent( QKeyEvent *e) { |
380 | qDebug("keypressevent"); | 380 | Q_UNUSED(e); |
381 | } | 381 | } |
382 | 382 | ||
383 | void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { | 383 | void AdvancedFm::keyReleaseEvent( QKeyEvent *e) { |
384 | qDebug("key release"); | ||
385 | if( CurrentView()->hasFocus() ) | 384 | if( CurrentView()->hasFocus() ) |
386 | e->ignore(); | 385 | e->ignore(); |
387 | if( e->key() == Key_Left ) | 386 | if( e->key() == Key_Left ) |
388 | upDir(); | 387 | upDir(); |
389 | else if( e->key() == Key_Return || e->key() == Key_Enter) | 388 | else if( e->key() == Key_Return || e->key() == Key_Enter) |
390 | navigateToSelected(); | 389 | navigateToSelected(); |
391 | else if( e->key() == Key_Tab) | 390 | else if( e->key() == Key_Tab) |
392 | setOtherTabCurrent(); | 391 | setOtherTabCurrent(); |
393 | else if( e->key() == Key_Delete ) | 392 | else if( e->key() == Key_Delete ) |
394 | del(); | 393 | del(); |
395 | else if( e->key() == Key_A) | 394 | else if( e->key() == Key_A) |
396 | copyAs(); | 395 | copyAs(); |
@@ -804,20 +803,21 @@ void AdvancedFm::findFile(const QString &fileName) { | |||
804 | QFileInfo fi(fileName); | 803 | QFileInfo fi(fileName); |
805 | QListView *thisView = CurrentView(); | 804 | QListView *thisView = CurrentView(); |
806 | QListViewItemIterator it( thisView ); | 805 | QListViewItemIterator it( thisView ); |
807 | for ( ; it.current(); ++it ) { | 806 | for ( ; it.current(); ++it ) { |
808 | if(it.current()->text(0) == fi.fileName()) { | 807 | if(it.current()->text(0) == fi.fileName()) { |
809 | it.current()->setSelected(true); | 808 | it.current()->setSelected(true); |
810 | thisView->ensureItemVisible(it.current()); | 809 | thisView->ensureItemVisible(it.current()); |
811 | } | 810 | } |
812 | } | 811 | } |
813 | } | 812 | } |
814 | 813 | ||
815 | void AdvancedFm::slotSwitchMenu(int item) { | 814 | void AdvancedFm::slotSwitchMenu(int item) { |
815 | Q_UNUSED(item); | ||
816 | // qDebug( "Switch %d",item); | 816 | // qDebug( "Switch %d",item); |
817 | // viewMenu->setItemChecked(item, true); | 817 | // viewMenu->setItemChecked(item, true); |
818 | } | 818 | } |
819 | 819 | ||
820 | void AdvancedFm::navigateToSelected() { | 820 | void AdvancedFm::navigateToSelected() { |
821 | if( !CurrentView()->currentItem()) return; | 821 | if( !CurrentView()->currentItem()) return; |
822 | doDirChange(); | 822 | doDirChange(); |
823 | } | 823 | } |